COMMON: Cleanup error messages

This commit is contained in:
Max Horn 2011-04-18 17:43:19 +02:00
parent 73f04118f3
commit bac8fa70fd

View file

@ -41,13 +41,13 @@ static String errorToString(ErrorCode errorCode) {
case kNoError: case kNoError:
return _s("No error"); return _s("No error");
case kInvalidPathError: case kInvalidPathError:
return _s("Invalid Path"); return _s("Invalid path");
case kNoGameDataFoundError: case kNoGameDataFoundError:
return _s("Game Data not found"); return _s("Game data not found");
case kUnsupportedGameidError: case kUnsupportedGameidError:
return _s("Game Id not supported"); return _s("Game id not supported");
case kUnsupportedColorMode: case kUnsupportedColorMode:
return _s("Unsupported Color Mode"); return _s("Unsupported color mode");
case kReadPermissionDenied: case kReadPermissionDenied:
return _s("Read permission denied"); return _s("Read permission denied");
@ -56,7 +56,7 @@ static String errorToString(ErrorCode errorCode) {
// The following three overlap a bit with kInvalidPathError and each other. Which to keep? // The following three overlap a bit with kInvalidPathError and each other. Which to keep?
case kPathDoesNotExist: case kPathDoesNotExist:
return _s("Path not exists"); return _s("Path does not exist");
case kPathNotDirectory: case kPathNotDirectory:
return _s("Path not a directory"); return _s("Path not a directory");
case kPathNotFile: case kPathNotFile:
@ -65,7 +65,7 @@ static String errorToString(ErrorCode errorCode) {
case kCreatingFileFailed: case kCreatingFileFailed:
return _s("Cannot create file"); return _s("Cannot create file");
case kReadingFailed: case kReadingFailed:
return _s("Reading failed"); return _s("Reading data failed");
case kWritingFailed: case kWritingFailed:
return _s("Writing data failed"); return _s("Writing data failed");
@ -75,7 +75,7 @@ static String errorToString(ErrorCode errorCode) {
case kNoSavesError: case kNoSavesError:
case kArgumentNotProcessed: case kArgumentNotProcessed:
default: default:
return _s("Unknown Error"); return _s("Unknown error");
} }
} }