summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/demo/book/freeze_filesystem/Client.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/demo/book/freeze_filesystem/Client.cpp b/cpp/demo/book/freeze_filesystem/Client.cpp
index e5d4a4b5f87..f13969563ce 100644
--- a/cpp/demo/book/freeze_filesystem/Client.cpp
+++ b/cpp/demo/book/freeze_filesystem/Client.cpp
@@ -89,9 +89,9 @@ FilesystemClient::run(int argc, char* argv[])
}
catch(const NameInUse&)
{
- //
- // Ignore - file already exists.
- //
+ NodeDesc desc = rootDir->find("README");
+ readme = FilePrx::checkedCast(desc.proxy);
+ assert(readme);
}
//
@@ -128,9 +128,9 @@ FilesystemClient::run(int argc, char* argv[])
}
catch(const NameInUse&)
{
- //
- // Ignore - file already exists.
- //
+ NodeDesc desc = coleridge->find("Kubla_Khan");
+ file = FilePrx::checkedCast(desc.proxy);
+ assert(file);
}
cout << "Contents of filesystem:" << endl;