diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:10 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-08-15 22:47:10 +0000 |
commit | 8cde77d5f4bf894b37197552bd9b035cfcf57a22 (patch) | |
tree | fdb34383c6c324fcbaa69f2671dc4efe5640065c /bin | |
parent | 4c70b143f024f343cde1aded2ba4511e69da5863 (diff) |
Add message to ClientMarkerNotAsExpected exception.
To help with debugging.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupClientContext.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientContext.cpp b/bin/bbackupd/BackupClientContext.cpp index f37d3d6b..ca4200c4 100644 --- a/bin/bbackupd/BackupClientContext.cpp +++ b/bin/bbackupd/BackupClientContext.cpp @@ -200,7 +200,12 @@ BackupProtocolClient &BackupClientContext::GetConnection() } // Then throw an exception about this - THROW_EXCEPTION(BackupStoreException, ClientMarkerNotAsExpected) + THROW_EXCEPTION_MESSAGE(BackupStoreException, + ClientMarkerNotAsExpected, + "Expected " << mClientStoreMarker << + " but found " << loginConf->GetClientStoreMarker() << + ": is someone else writing to the " + "same account?"); } } |