Browse Source

Fixed error handling and message when parsing non-existent files.

pull/1150/head
Joao Matos 7 years ago
parent
commit
e5aaa2ee19
  1. 4
      src/Generator/Driver.cs

4
src/Generator/Driver.cs

@ -97,7 +97,9 @@ namespace CppSharp @@ -97,7 +97,9 @@ namespace CppSharp
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;
}

Loading…
Cancel
Save