Browse Source

POSIX: Throw an error if the startup script is not present

sbg
Lorenz Meier 10 years ago
parent
commit
e30c822068
  1. 5
      src/platforms/posix/main.cpp

5
src/platforms/posix/main.cpp

@ -96,6 +96,11 @@ int main(int argc, char **argv) @@ -96,6 +96,11 @@ int main(int argc, char **argv)
if (argc == 2) {
ifstream infile(argv[1]);
if (!infile) {
cout << "failed opening script" << argv[1] << std::endl;
return 1;
}
for (string line; getline(infile, line, '\n'); ) {
process_line(line);
}

Loading…
Cancel
Save