aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filesys.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index 805aae6ae..e8a9e88db 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -74,9 +74,8 @@ std::vector<DirListNode> GetDirListing(std::string pathstring)
if (hFind == INVALID_HANDLE_VALUE)
{
- errorstream<<"GetDirListing: Invalid file handle. Error is "
- <<GetLastError()<<std::endl;
- retval = (-1);
+ retval = (-1);
+ goto Cleanup;
}
else
{