Skip to content

Commit 8d718d5

Browse files
committed
inc
1 parent a15ffe4 commit 8d718d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ int main(int argc, char **argv)
4343
}
4444
case 'I': { // include path
4545
const char * const value = arg[2] ? (argv[i] + 2) : argv[++i];
46+
std::ifstream f(value);
47+
if (!f.is_open()) {
48+
std::cout << "error: include path '" << value << "' does not exist" << std::endl;
49+
std::exit(1);
50+
}
4651
dui.includePaths.push_back(value);
4752
found = true;
4853
break;

0 commit comments

Comments
 (0)