Azure / Azure/azure-functions-host

Utility.FlattenException is ommitting line numbers from the exception printed

Open
#2,811 8 comments 0 reactions 1 assignee Claimed by @brettsam View on GitHub
2.x bug
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

Sample code

```cs
public static Task Run(HttpRequestMessage req, TraceWriter log)
{
throw new System.Exception("boom");
}
```

This displays error

```
[Error] Exception while executing function: Functions.HttpTriggerCSharp1. mscorlib: Exception has been thrown by the target of an invocation. f-HttpTriggerCSharp1__981322258: boom.
```

which is missing the line numbers. If I catch and print the actual exception thrown myself, it shows the correct line number

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.