From: Thomas Geymayer Date: Thu, 9 Jun 2016 11:03:40 +0000 (+0200) Subject: Fix missing throw. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=816a8c1e1146cea2fc352cee627b6bb6dbbf76f7;p=simgear.git Fix missing throw. --- 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)); }