]> git.mxchange.org Git - simgear.git/commitdiff
Fix missing throw.
authorThomas Geymayer <tomgey@gmail.com>
Thu, 9 Jun 2016 11:03:40 +0000 (13:03 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/misc/sg_dir.cxx

index 34d25f9ef6df58cdd6e05c5c58a88192feff68ed..47e019ef439f4f8433cb6ae48e8720af29efcb8b 100644 (file)
@@ -93,7 +93,7 @@ Dir Dir::current()
     char *buf = ::getcwd(NULL, 0);
 #endif
     if (!buf) {
-        if  (errno == 2) sg_exception("The current directory is invalid");
+        if  (errno == 2) throw sg_exception("The current directory is invalid");
         else throw sg_exception(strerror(errno));
     }