1
0
mirror of https://github.com/phatina/simple-mtpfs synced 2025-03-09 22:58:55 +00:00

fix output error message, when no storage found

This commit is contained in:
David Mohr 2014-01-13 19:16:29 +01:00 committed by Peter Hatina
parent c0e76ed848
commit a5499dea4f

View File

@ -202,6 +202,8 @@ bool MTPDevice::enumStorages()
criticalEnter();
LIBMTP_Clear_Errorstack(m_device);
if (LIBMTP_Get_Storage(m_device, LIBMTP_STORAGE_SORTBY_NOTSORTED) < 0) {
std::cerr << "Could not retrieve device storage.\n";
std::cerr << "For android phones make sure the screen is unlocked.\n";
logerr("Could not retrieve device storage. Exiting.\n");
LIBMTP_Dump_Errorstack(m_device);
LIBMTP_Clear_Errorstack(m_device);