Add quotes to not-found filenames

This commit is contained in:
Wilson Snyder 2024-08-20 14:47:43 -04:00
parent 99a43b7695
commit 43a57da950
2 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ string V3Options::filePath(FileLine* fl, const string& modname, const string& la
// Warn and return not found
if (errmsg != "") {
fl->v3error(errmsg + filename);
fl->v3error(errmsg + "'"s + filename + "'"s);
filePathLookedMsg(fl, filename);
}
return "";

View File

@ -1,4 +1,4 @@
%Error: t/t_preproc_inc_notfound_bad.v:7:10: Cannot find include file: this_file_is_not_found.vh
%Error: t/t_preproc_inc_notfound_bad.v:7:10: Cannot find include file: 'this_file_is_not_found.vh'
7 | `include "this_file_is_not_found.vh"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
... Looked in: