diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-12-16 16:41:30 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-12-16 16:41:30 (GMT) |
| commit | d29c77b2d5d9a03f64d35b7ef8727c7624e9cc99 (patch) | |
| tree | a58900f9fc73d42c3239582bb6bd870f4793e305 /src/client/Client.cpp | |
| parent | 4d546b6818644f2eee3850ee355e4ce06c2416ed (diff) | |
| download | powder-d29c77b2d5d9a03f64d35b7ef8727c7624e9cc99.zip powder-d29c77b2d5d9a03f64d35b7ef8727c7624e9cc99.tar.gz | |
More detailed error when opening non-existent directory.
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 326bb05..967920b 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -431,7 +431,7 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str findFileHandle = _findfirst(fileMatch.c_str(), ¤tFile); if (findFileHandle == -1L) { - printf("Unable to open directory\n"); + printf("Unable to open directory: %s\n", directory.c_str()); return std::vector<std::string>(); } do @@ -448,7 +448,7 @@ std::vector<std::string> Client::DirectorySearch(std::string directory, std::str DIR *directoryHandle = opendir(directory.c_str()); if(!directoryHandle) { - printf("Unable to open directory\n"); + printf("Unable to open directory: %s\n", directory.c_str()); return std::vector<std::string>(); } while(directoryEntry = readdir(directoryHandle)) |
