aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index 4f9ac3da..98b6b901 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -157,7 +157,10 @@ void ECP5CommandHandler::customAfterLoad(Context *ctx)
std::vector<std::string> files = vm["lpf"].as<std::vector<std::string>>();
for (const auto &filename : files) {
std::ifstream in(filename);
- ctx->applyLPF(filename, in);
+ if (!in)
+ log_error("failed to open LPF file '%s'\n", filename.c_str());
+ if (!ctx->applyLPF(filename, in))
+ log_error("failed to parse LPF file '%s'\n", filename.c_str());
}
}
}