Skip to content

Commit f4896cc

Browse files
committed
[PEx IR] Minor correction when pritning source location in exception
1 parent 3281073 commit f4896cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/PCompiler/CompilerCore/Backend/PEx/TransformASTPass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static State TransformState(State state, IDictionary<Function, Function>
126126
{
127127
if (handler.Key.IsNullEvent)
128128
throw new NotImplementedException(
129-
$"{context.LocationResolver.GetLocation(handler.Key.SourceLocation)}: Null events are not supported in this mode.");
129+
$"{context.LocationResolver.GetLocation(handler.Value.SourceLocation)}: Null events are not supported in this mode.");
130130
transformedState[handler.Key] = TransformAction(handler.Value, functionMap);
131131
}
132132

0 commit comments

Comments
 (0)