From 1a938956ec00247794151bb2b72f088f68581857 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 21 May 2010 18:25:01 +0000 Subject: Implement FR #2988017: exit status with --list-saves always 0 svn-id: r49132 --- common/error.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/error.h b/common/error.h index c4d383e508..7aff8d40b9 100644 --- a/common/error.h +++ b/common/error.h @@ -59,10 +59,16 @@ enum Error { kPathNotDirectory, ///< The specified path does not point to a directory kPathNotFile, ///< The specified path does not point to a file - kCreatingFileFailed, - kReadingFailed, ///< Failed creating a (savestate) file + kCreatingFileFailed, ///< Failed creating a (savestate) file + kReadingFailed, ///< Failed to read a file (permission denied?) kWritingFailed, ///< Failure to write data -- disk full? + // The following are used by --list-saves + kPluginNotFound, ///< Failed to find plugin to handle tager + kPluginNotSupportSaves, ///< Failed if plugin does not support saves + kNoSavesError, ///< There are no saves to show + + kArgumentNotProcessed, ///< Used in command line parsing kUnknownError ///< Catch-all error, used if no other error code matches }; -- cgit v1.2.3