diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-04-09 21:05:43 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-04-09 21:05:43 +0000 |
commit | 9dbacc3316339e8f7eed2f48a9d9d6760fd63c74 (patch) | |
tree | dec183707bea690f4a7c49967e553ca70b057024 | |
parent | e633f6dcc89c57c10a5402c252bd0356f4cf9484 (diff) |
Add an error message giving the file name when an expected raidfile
does not exist, to help server operators to figure out what's wrong.
-rw-r--r-- | lib/raidfile/RaidFileRead.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/raidfile/RaidFileRead.cpp b/lib/raidfile/RaidFileRead.cpp index 187270f9..9ebb39ea 100644 --- a/lib/raidfile/RaidFileRead.cpp +++ b/lib/raidfile/RaidFileRead.cpp @@ -1021,6 +1021,7 @@ std::auto_ptr<RaidFileRead> RaidFileRead::Open(int SetNumber, const std::string RaidFileUtil::ExistType existance = RaidFileUtil::RaidFileExists(rdiscSet, Filename, &startDisc, &existingFiles, pRevisionID); if(existance == RaidFileUtil::NoFile) { + BOX_ERROR("Expected raidfile " << Filename << " does not exist"); THROW_EXCEPTION(RaidFileException, RaidFileDoesntExist) } else if(existance == RaidFileUtil::NonRaid) |