slightly more descriptive error messages for TAsns who think mount apps magically know where disks should be mounted

SVN revision: 56875
This commit is contained in:
Mike Blumenkrantz 2011-02-09 20:44:21 +00:00
parent 8c9ac9c967
commit a2b2f60c07
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ main(int argc, char *argv[])
ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL);
if (!eeze_disk_mount(disk))
{
printf("Mount operation could not be started!\n");
const char *mp;
mp = eeze_disk_mount_point_get(disk);
if (!mp) fprintf(stderr, "No mount point passed!\n");
else fprintf(stderr, "Mount operation could not be started!\n");
exit(1);
}
ecore_main_loop_begin();