We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e851486 commit ec827feCopy full SHA for ec827fe
Intersect.Server/Web/Controllers/AssetManagement/AssetsController.cs
@@ -134,17 +134,11 @@ public IActionResult AssetGet([FromRoute] string? path = default)
134
{
135
_logger.LogError(exception, "Failed to retrieve results for {Path}", path);
136
137
- object? data = $"An error occurred when retrieving results for {path}";
138
#if DEBUG
139
- data = exception;
+ return InternalServerError(exception);
+#else
140
+ return InternalServerError($"An error occurred when retrieving results for {path}");
141
#endif
-
142
- if (data is string message)
143
- {
144
- return InternalServerError(message);
145
- }
146
147
- return InternalServerError(data);
148
}
149
150
0 commit comments