Bug 315305 - "Improve nsILocalFile error reporting on Mac" [p=smfr r=ccarlen sr=dougt a1.9=sayrer]

This commit is contained in:
reed@reedloden.com 2007-10-14 20:05:20 -07:00
Родитель 6b6371f05b
Коммит e7a2a49b3f
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -2395,21 +2395,34 @@ static nsresult MacErrorMapper(OSErr inErr)
break;
case fnfErr:
case afpObjectNotFound:
case afpDirNotFound:
outErr = NS_ERROR_FILE_NOT_FOUND;
break;
case dupFNErr:
case afpObjectExists:
outErr = NS_ERROR_FILE_ALREADY_EXISTS;
break;
case dskFulErr:
case afpDiskFull:
outErr = NS_ERROR_FILE_DISK_FULL;
break;
case fLckdErr:
case afpVolLocked:
outErr = NS_ERROR_FILE_IS_LOCKED;
break;
case afpAccessDenied:
outErr = NS_ERROR_FILE_ACCESS_DENIED;
break;
case afpDirNotEmpty:
outErr = NS_ERROR_FILE_DIR_NOT_EMPTY;
break;
// Can't find good map for some
case bdNamErr:
outErr = NS_ERROR_FAILURE;