Don't pass the password in the command line when doing listShares

This commit is contained in:
Robin Appelman 2013-05-01 17:37:07 +02:00
commit f57f29d277
3 changed files with 33 additions and 15 deletions

View file

@ -200,15 +200,15 @@ class Share {
}
list($error,) = explode(' ', $lines[0]);
switch ($error) {
case 'NT_STATUS_OBJECT_PATH_NOT_FOUND':
case 'NT_STATUS_OBJECT_NAME_NOT_FOUND':
case 'NT_STATUS_NO_SUCH_FILE':
case ErrorCodes::PathNotFound:
case ErrorCodes::ObjectNotFound:
case ErrorCodes::NoSuchFile:
throw new NotFoundException();
case 'NT_STATUS_OBJECT_NAME_COLLISION':
case ErrorCodes::NameCollision:
throw new AlreadyExistsException();
case 'NT_STATUS_ACCESS_DENIED':
case ErrorCodes::AccessDenied:
throw new AccessDeniedException();
case 'NT_STATUS_DIRECTORY_NOT_EMPTY':
case ErrorCodes::DirectoryNotEmpty:
throw new NotEmptyException();
default:
throw new \Exception();