Skip to content

Commit

Permalink
chore: remove detailed error messages for diagnostics (dotnet#9919)
Browse files Browse the repository at this point in the history
chore: update jsonschema.net version & remove detailed error messages for diagnostics
  • Loading branch information
filzrev authored and p-kostov committed Jun 28, 2024
1 parent d0d2636 commit 6831f53
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Docfx.Build/HostServiceCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,8 @@ public virtual (FileModel model, bool valid) Load(
{
if (e is not DocumentException)
{
var message = e is ArgumentException or NullReferenceException
? e.ToString()
: e.Message;

Logger.LogError(
$"Unable to load file '{file.File}' via processor '{processor.Name}': {message}",
$"Unable to load file '{file.File}' via processor '{processor.Name}': {e.Message}",
code: ErrorCodes.Build.InvalidInputFile);
}
return (null, false);
Expand Down

0 comments on commit 6831f53

Please sign in to comment.