Skip to content

Commit

Permalink
Fixed error handling and message when parsing non-existent files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jan 4, 2019
1 parent a240827 commit e5aaa2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Generator/Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void OnFileParsed(IEnumerable<string> files, ParserResult result)
hasParsingErrors = true;
break;
case ParserResultKind.FileNotFound:
Diagnostics.Error("A file from '{0}' was not found", string.Join(",", files));
Diagnostics.Error("File{0} not found: '{1}'",
(files.Count() > 1) ? "s" : "", string.Join(",", files));
hasParsingErrors = true;
break;
}

Expand Down

0 comments on commit e5aaa2e

Please sign in to comment.