From c4b6715d0dec121d5e2f1a2ed95a169dbc36f7d8 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 8 Mar 2007 22:27:39 +0000 Subject: Report an appropriate error if the target path of the restore operation is not found (refs #3, merges [514]) --- bin/bbackupquery/BackupQueries.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 &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; -- cgit v1.2.3