diff --git a/src/HotChocolate/Core/src/Types/SchemaException.cs b/src/HotChocolate/Core/src/Types/SchemaException.cs index fb7c2bd31b1..5877b1f1c34 100644 --- a/src/HotChocolate/Core/src/Types/SchemaException.cs +++ b/src/HotChocolate/Core/src/Types/SchemaException.cs @@ -63,7 +63,7 @@ private static string CreateErrorMessage(IReadOnlyList errors) private static partial class StackTraceHelper { - [GeneratedRegex(@" in ([^:]+):line (\d+)", RegexOptions.Compiled)] + [GeneratedRegex(@" in (.+):line (\d+)", RegexOptions.Compiled)] private static partial Regex StackTracePathRegex(); public static string? Normalize(string stackTrace)