From c7fdfa7feb4782d913161f612cac4d978b598716 Mon Sep 17 00:00:00 2001
From: filzrev <103790468+filzrev@users.noreply.github.com>
Date: Tue, 14 May 2024 12:53:48 +0900
Subject: [PATCH] chore: update jsonschema.net version & remove detailed error
messages for diagnostics
---
Directory.Packages.props | 2 +-
src/Docfx.Build/HostServiceCreator.cs | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 85fe7e401ea..7c4ea2960d2 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -8,7 +8,7 @@
-
+
diff --git a/src/Docfx.Build/HostServiceCreator.cs b/src/Docfx.Build/HostServiceCreator.cs
index 462b5813afc..fb6aea1c646 100644
--- a/src/Docfx.Build/HostServiceCreator.cs
+++ b/src/Docfx.Build/HostServiceCreator.cs
@@ -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);