[Box Backup-commit] COMMIT r1377 - box/chris/merge/bin/bbackupquery

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Thu, 08 Mar 2007 22:27:39 +0000


Author: chris
Date: 2007-03-08 22:27:39 +0000 (Thu, 08 Mar 2007)
New Revision: 1377

Modified:
   box/chris/merge/bin/bbackupquery/BackupQueries.cpp
Log:
Report an appropriate error if the target path of the restore operation
is not found (refs #3, merges [514])


Modified: box/chris/merge/bin/bbackupquery/BackupQueries.cpp
===================================================================
--- box/chris/merge/bin/bbackupquery/BackupQueries.cpp	2007-03-08 22:22:56 UTC (rev 1376)
+++ box/chris/merge/bin/bbackupquery/BackupQueries.cpp	2007-03-08 22:27:39 UTC (rev 1377)
@@ -1948,6 +1948,14 @@
 		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;