From 1c25d343a02eedadf92b5d61c3cbfc3b94ebb05b Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 9 Jun 2016 13:03:40 +0200 Subject: [PATCH] Fix missing throw. --- simgear/misc/sg_dir.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/misc/sg_dir.cxx b/simgear/misc/sg_dir.cxx index 34d25f9e..47e019ef 100644 --- a/simgear/misc/sg_dir.cxx +++ b/simgear/misc/sg_dir.cxx @@ -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)); }