Pass::call(design, command);
}
}
- catch (log_cmd_error_exception) {
+ catch (...) {
Frontend::current_script_file = backup_script_file;
- throw log_cmd_error_exception();
+ throw;
}
Frontend::current_script_file = backup_script_file;
try {
std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args);
- } catch (log_cmd_error_exception) {
+ } catch (...) {
for (auto cf : files_to_close)
fclose(cf);
log_files = backup_log_files;
- throw log_cmd_error_exception();
+ throw;
}
for (auto cf : files_to_close)
try {
std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args);
- } catch (log_cmd_error_exception) {
+ } catch (...) {
design->monitors.erase(&monitor);
- throw log_cmd_error_exception();
+ throw;
}
design->monitors.erase(&monitor);