aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/driver.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-27 12:04:12 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-27 12:05:50 +0200
commitd878fcbdc76f4b612ba8578213f73f27585fc792 (patch)
tree6a803cd2191455691c9fe2054348c7c896303902 /kernel/driver.cc
parent7661ded8ddf85e8cd80ccce0bec211d9bf46e56b (diff)
downloadyosys-d878fcbdc76f4b612ba8578213f73f27585fc792.tar.gz
yosys-d878fcbdc76f4b612ba8578213f73f27585fc792.tar.bz2
yosys-d878fcbdc76f4b612ba8578213f73f27585fc792.zip
Added log_cmd_error_expection
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r--kernel/driver.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 7a1c7ed16..380315e7c 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -141,9 +141,9 @@ static void run_frontend(std::string filename, std::string command, RTLIL::Desig
Pass::call(design, command);
}
}
- catch (...) {
+ catch (log_cmd_error_expection) {
Frontend::current_script_file = backup_script_file;
- std::rethrow_exception(std::current_exception());
+ throw log_cmd_error_expection();
}
Frontend::current_script_file = backup_script_file;
@@ -329,7 +329,7 @@ static void shell(RTLIL::Design *design)
try {
assert(design->selection_stack.size() == 1);
Pass::call(design, command);
- } catch (int) {
+ } catch (log_cmd_error_expection) {
while (design->selection_stack.size() > 1)
design->selection_stack.pop_back();
log_reset_stack();