Skip to content

Commit e5aaa2e

Browse files
committed
Fixed error handling and message when parsing non-existent files.
1 parent a240827 commit e5aaa2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Generator/Driver.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ void OnFileParsed(IEnumerable<string> files, ParserResult result)
9797
hasParsingErrors = true;
9898
break;
9999
case ParserResultKind.FileNotFound:
100-
Diagnostics.Error("A file from '{0}' was not found", string.Join(",", files));
100+
Diagnostics.Error("File{0} not found: '{1}'",
101+
(files.Count() > 1) ? "s" : "", string.Join(",", files));
102+
hasParsingErrors = true;
101103
break;
102104
}
103105

0 commit comments

Comments
 (0)