From 816a8c1e1146cea2fc352cee627b6bb6dbbf76f7 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)); } -- 2.39.5