Commit 9736aee8 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Log an error if parseFile couldn't open the file

parent 5e51a0a3
......@@ -114,6 +114,7 @@ shared_ptr<BelCardList> BelCardParser::parse(const string &input) {
shared_ptr<BelCardList> BelCardParser::parseFile(const string &filename) {
ifstream istr(filename);
if (!istr.is_open()) {
cerr << "[belcard] Couldn't open file " << filename << endl;
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment