aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ice40
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-21 18:08:28 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-21 18:08:28 +0200
commitc33a039ac388bfcb5e068a04a7cb1b05ebec7d7f (patch)
treefaa50278ae2e700246453b85afbff10c91c411cc /gui/ice40
parent8fac26c2b795865098b1ba16152cd1c510133f29 (diff)
downloadnextpnr-c33a039ac388bfcb5e068a04a7cb1b05ebec7d7f.tar.gz
nextpnr-c33a039ac388bfcb5e068a04a7cb1b05ebec7d7f.tar.bz2
nextpnr-c33a039ac388bfcb5e068a04a7cb1b05ebec7d7f.zip
Added return code to json parsing and pcf reading
Diffstat (limited to 'gui/ice40')
-rw-r--r--gui/ice40/worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ice40/worker.cc b/gui/ice40/worker.cc
index f86ec55e..5702137b 100644
--- a/gui/ice40/worker.cc
+++ b/gui/ice40/worker.cc
@@ -20,7 +20,8 @@ void Worker::parsejson(const std::string &filename)
std::string fn = filename;
std::ifstream f(fn);
try {
- parse_json_file(f, fn, ctx);
+ if (!parse_json_file(f, fn, ctx))
+ log_error("Loading design failed.\n");
if (!pack_design(ctx))
log_error("Packing design failed.\n");
double freq = 50e6;
@@ -33,7 +34,6 @@ void Worker::parsejson(const std::string &filename)
log_error("Routing design failed.\n");
Q_EMIT log("done");
} catch (log_execution_error_exception) {
- Q_EMIT log("failed");
}
}