diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-08 22:27:39 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-08 22:27:39 +0000 |
commit | c4b6715d0dec121d5e2f1a2ed95a169dbc36f7d8 (patch) | |
tree | 4b1f1e4e27ff7cade3743dffb535b667b4f27f62 | |
parent | d9f8b29cd22545460f52026442b69f20da97cc9f (diff) |
Report an appropriate error if the target path of the restore operation
is not found (refs #3, merges [514])
-rw-r--r-- | bin/bbackupquery/BackupQueries.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp index 08e1422f..d491fac6 100644 --- a/bin/bbackupquery/BackupQueries.cpp +++ b/bin/bbackupquery/BackupQueries.cpp @@ -1948,6 +1948,14 @@ void BackupQueries::CommandRestore(const std::vector<std::string> &args, const b printf("The target directory exists. You cannot restore over an existing directory.\n"); break; + #ifdef WIN32 + case Restore_TargetPathNotFound: + printf("The target directory path does not exist.\n" + "To restore to a directory whose parent " + "does not exist, create the parent first.\n"); + break; + #endif + default: printf("ERROR: Unknown restore result.\n"); break; |