Fix missing throw.
This commit is contained in:
parent
c762dbe864
commit
1c25d343a0
@ -93,7 +93,7 @@ Dir Dir::current()
|
|||||||
char *buf = ::getcwd(NULL, 0);
|
char *buf = ::getcwd(NULL, 0);
|
||||||
#endif
|
#endif
|
||||||
if (!buf) {
|
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));
|
else throw sg_exception(strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user