diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-02-17 12:54:36 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-02-17 12:54:36 +0100 |
commit | be977cf7eb76e10866555543aef4809264b393de (patch) | |
tree | 8e3d912f7d8004b9e3880644e34604661db54c4d /kernel/log.cc | |
parent | 6b396e64556ad556eb3260db714c1f824ee4f458 (diff) | |
download | yosys-be977cf7eb76e10866555543aef4809264b393de.tar.gz yosys-be977cf7eb76e10866555543aef4809264b393de.tar.bz2 yosys-be977cf7eb76e10866555543aef4809264b393de.zip |
No new error if already failing
Diffstat (limited to 'kernel/log.cc')
-rw-r--r-- | kernel/log.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index 997c39c64..89a403e63 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -331,7 +331,8 @@ static void logv_error_with_prefix(const char *prefix, f = stderr; log_last_error = vstringf(format, ap); - log("%s%s", prefix, log_last_error.c_str()); + if (check_expected_logs) + log("%s%s", prefix, log_last_error.c_str()); log_flush(); log_make_debug = bak_log_make_debug; |