Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ private async Task<FormulaValue> PostProcessResultAsync(FormulaValue result, Bas

if (result is ErrorValue ev && (er = ev.Errors.FirstOrDefault(e => e.Kind == ErrorKind.Network)) != null)
{
runtimeContext.ExecutionLogger?.LogError($"{this.LogFunction(nameof(PostProcessResultAsync))}, ErrorValue is returned with {er.Message}");
runtimeContext.ExecutionLogger?.LogWarning($"{this.LogFunction(nameof(PostProcessResultAsync))}, ErrorValue is returned with {er.Message}");
result = FormulaValue.NewError(new ExpressionError() { Kind = er.Kind, Severity = er.Severity, Message = $"{DPath.Root.Append(new DName(Namespace)).ToDottedSyntax()}.{Name} failed: {er.Message}" }, ev.Type);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,15 @@ public async Task<FormulaValue> DecodeResponseAsync(HttpResponseMessage response

if (throwOnError)
{
throw new HttpRequestException($"Http Status Error {statusCode}{reasonPhrase}: {text}");
throw new HttpRequestException($"Http Status Error {statusCode}{reasonPhrase}");
}

return FormulaValue.NewError(
new ExpressionError()
{
Kind = ErrorKind.Network,
Severity = ErrorSeverity.Critical,
Message = $"The server returned an HTTP error with code {statusCode}{reasonPhrase}. Response: {text}"
Message = $"The server returned an HTTP error with code {statusCode}{reasonPhrase}."
},
_function.ReturnType);
}
Expand Down