Fix missing throw.

This commit is contained in:
Thomas Geymayer 2016-06-09 13:03:40 +02:00
parent c762dbe864
commit 1c25d343a0

View 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));
}