This commit is contained in:
Surgupta 2024-09-09 16:46:41 -07:00
Родитель 16b290e340
Коммит cf8d1f0139
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -53,7 +53,7 @@ namespace Microsoft.Azure.WebJobs.Host
/// <param name="methodName">The fully qualified method name.</param> /// <param name="methodName">The fully qualified method name.</param>
/// <param name="innerException">The exception that is the cause of the current exception (or null).</param> /// <param name="innerException">The exception that is the cause of the current exception (or null).</param>
public FunctionInvocationException(string message, Guid instanceId, string methodName, Exception innerException) public FunctionInvocationException(string message, Guid instanceId, string methodName, Exception innerException)
: base(Sanitizer.Sanitize(message), UpdateMessage(innerException, Sanitizer.Sanitize(innerException?.Message))) : base(Sanitizer.Sanitize(message), methodName, UpdateMessage(innerException, Sanitizer.Sanitize(innerException?.Message)))
{ {
InstanceId = instanceId; InstanceId = instanceId;
} }
@ -79,7 +79,7 @@ namespace Microsoft.Azure.WebJobs.Host
private static Exception UpdateMessage(Exception exception, string message) private static Exception UpdateMessage(Exception exception, string message)
{ {
if (string.IsNullOrEmpty(message) || exception is null) if (exception is null)
{ {
return exception; return exception;
} }