Skip to content

Commit 1d92579

Browse files
sophiatevSophia Tevosyan
andauthored
Changing the FunctionTimeoutAbortExceptionMessage (#11453)
* first commit * addressing PR comments * missed a space --------- Co-authored-by: Sophia Tevosyan <stevosyan@microsoft.com>
1 parent 7b1519f commit 1d92579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebJobs.Script.Grpc/Channel/GrpcWorkerChannel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,8 @@ public void Shutdown(Exception workerException)
15601560

15611561
if (workerException is null || workerException is FunctionTimeoutException)
15621562
{
1563-
shutdownException = new FunctionTimeoutAbortException(workerException?.Message ?? "Worker channel is shutting down. Aborting function.", workerException);
1563+
string exceptionMessageSuffix = workerException?.Message is not null ? " Reason: " + workerException.Message : string.Empty;
1564+
shutdownException = new FunctionTimeoutAbortException("Worker channel is shutting down. Aborting function." + exceptionMessageSuffix, workerException);
15641565
}
15651566

15661567
foreach (var invocation in _executingInvocations?.Values)

0 commit comments

Comments
 (0)