diff options
Diffstat (limited to 'passes/cmds/tee.cc')
-rw-r--r-- | passes/cmds/tee.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/cmds/tee.cc b/passes/cmds/tee.cc index e83c9387..a0484090 100644 --- a/passes/cmds/tee.cc +++ b/passes/cmds/tee.cc @@ -76,11 +76,11 @@ struct TeePass : public Pass { 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) |