aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 67d71dc1..067637e8 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -288,11 +288,13 @@ int main(int argc, char *argv[])
if (vm.count("json")) {
std::string filename = vm["json"].as<std::string>();
std::ifstream f(filename);
- parse_json_file(f, filename, &ctx);
+ if (!parse_json_file(f, filename, &ctx))
+ log_error("Loading design failed.\n");
if (vm.count("pcf")) {
std::ifstream pcf(vm["pcf"].as<std::string>());
- apply_pcf(&ctx, pcf);
+ if (!apply_pcf(&ctx, pcf))
+ log_error("Loading PCF failed.\n");
}
if (!pack_design(&ctx) && !ctx.force)