From e5aaa2ee197238c1d78c3b1d5d207b5c0d028c41 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 4 Jan 2019 16:21:29 +0000 Subject: [PATCH] Fixed error handling and message when parsing non-existent files. --- src/Generator/Driver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 0b1b269f08..95101d3cea 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -97,7 +97,9 @@ void OnFileParsed(IEnumerable 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; }