From: James Harper Date: Sun, 15 Mar 2009 05:47:45 +0000 (+0000) Subject: added error message for hrCBDatabaseNotFound X-Git-Tag: Release-3.0.0~158 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7b4487a6a75a613badc0461b80744bed7cc1357f;p=bacula%2Fbacula added error message for hrCBDatabaseNotFound git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8534 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/win32/filed/plugins/api.c b/bacula/src/win32/filed/plugins/api.c index 7d06cc8765..7601afaa7e 100644 --- a/bacula/src/win32/filed/plugins/api.c +++ b/bacula/src/win32/filed/plugins/api.c @@ -136,6 +136,8 @@ ESEErrorMessage(HRESULT result) return "Exchange backup already in progress."; case hrLogfileNotContiguous: return "Existing log file is not contiguous. Check that no stale files are left in the Exchange data/log directories."; + case hrCBDatabaseNotFound: + return "Database not found. Check that the Database you are trying to restore actually exists in the Storage Group you are restoring to."; default: return "Unknown error."; } diff --git a/bacula/src/win32/filed/plugins/api.h b/bacula/src/win32/filed/plugins/api.h index a5934fdb1f..7e41991245 100644 --- a/bacula/src/win32/filed/plugins/api.h +++ b/bacula/src/win32/filed/plugins/api.h @@ -252,12 +252,13 @@ loadExchangeApi(); char * ESEErrorMessage(HRESULT result); -#define hrLogfileHasBadSignature (HRESULT)0xC8000262L -#define hrLogfileNotContiguous (HRESULT)0xC8000263L -#define hrCBDatabaseInUse (HRESULT)0xC7FE1F41L +#define hrLogfileHasBadSignature (HRESULT)0xC8000262L +#define hrLogfileNotContiguous (HRESULT)0xC8000263L +#define hrCBDatabaseInUse (HRESULT)0xC7FE1F41L #define hrRestoreAtFileLevel (HRESULT)0xC7FF0FA5L #define hrMissingFullBackup (HRESULT)0xC8000230L #define hrBackupInProgress (HRESULT)0xC80001F9L +#define hrCBDatabaseNotFound (HRESULT)0xC7FE1F42L extern HrESEBackupRestoreGetNodes_t HrESEBackupRestoreGetNodes; extern HrESEBackupPrepare_t HrESEBackupPrepare;