am e558a000: Merge "Avoid crash in system server when mounting container"

* commit 'e558a0000389a2523b8d3d3a787db6b4579d2bdc':
  Avoid crash in system server when mounting container
This commit is contained in:
Brad Fitzpatrick
2011-04-04 10:17:35 -07:00
committed by Android Git Automerger
2 changed files with 133 additions and 1 deletions

View File

@ -1509,7 +1509,8 @@ class MountService extends IMountService.Stub
} catch (NativeDaemonConnectorException e) {
int code = e.getCode();
if (code == VoldResponseCode.OpFailedStorageNotFound) {
throw new IllegalArgumentException(String.format("Container '%s' not found", id));
Slog.i(TAG, String.format("Container '%s' not found", id));
return null;
} else {
throw new IllegalStateException(String.format("Unexpected response code %d", code));
}