From b0fdea553559df4fdea44643ba19dd4f52d25344 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 9 Jan 2026 00:09:28 -0500 Subject: [PATCH] Improve error message --- src/V3Options.cpp | 4 ++-- test_regress/t/t_flag_nofile_bad.out | 2 +- test_regress/t/t_flag_suggest.out | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 8da8c6287..381fe4c90 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -1160,8 +1160,8 @@ void V3Options::parseOpts(FileLine* fl, int argc, char** argv) VL_MT_DISABLED { // Default certain options and error check // Detailed error, since this is what we often get when run with minimal arguments if (vFiles().empty()) { - v3fatal("verilator: No Input Verilog file specified on command line, " - "see verilator --help for more information\n"); + v3fatal("verilator: No input Verilog file specified on command line, " + "see 'verilator --help' for more information\n"); } // Default prefix to the filename diff --git a/test_regress/t/t_flag_nofile_bad.out b/test_regress/t/t_flag_nofile_bad.out index 38697a96c..97ad5ccd8 100644 --- a/test_regress/t/t_flag_nofile_bad.out +++ b/test_regress/t/t_flag_nofile_bad.out @@ -1,2 +1,2 @@ -%Error: verilator: No Input Verilog file specified on command line, see verilator --help for more information +%Error: verilator: No input Verilog file specified on command line, see 'verilator --help' for more information ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance. diff --git a/test_regress/t/t_flag_suggest.out b/test_regress/t/t_flag_suggest.out index d038c2b5a..0186ffb33 100644 --- a/test_regress/t/t_flag_suggest.out +++ b/test_regress/t/t_flag_suggest.out @@ -20,5 +20,5 @@ ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance. %Error: Unknown language specified: 1364-1997... Suggested alternative: '1364-1995' ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance. -%Error: verilator: No Input Verilog file specified on command line, see verilator --help for more information +%Error: verilator: No input Verilog file specified on command line, see 'verilator --help' for more information ... This fatal error may be caused by the earlier error(s); resolve those first.