storage: When fs_mount_volume returns < 0, it's a status_t.

The "mount" command which calls fs_mount_volume direclty handled this
properly, but this class did not; which meant that user-visible error
messages about partitions failing to mount just said "general system error"
instead of the real one.

Fixes #14540.
This commit is contained in:
Augustin Cavalier 2018-10-06 14:23:16 -04:00
parent d6bc0fdbdb
commit 906af5f58c
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ BPartition::Mount(const char* mountPoint, uint32 mountFlags,
if (device >= 0)
return Device()->Update();
return B_ERROR;
return device;
}