diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-21 18:08:28 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-21 18:08:28 +0200 |
commit | c33a039ac388bfcb5e068a04a7cb1b05ebec7d7f (patch) | |
tree | faa50278ae2e700246453b85afbff10c91c411cc /gui/ice40 | |
parent | 8fac26c2b795865098b1ba16152cd1c510133f29 (diff) | |
download | nextpnr-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.cc | 4 |
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"); } } |