Skip to content

Commit 5f23a05

Browse files
committed
internal/printer: panic with correct err value
Before, this was referring to the wrong value and would panic with nil if we panicked a non-error type.
1 parent 4fd3fe8 commit 5f23a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/printer/printer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func Print(in ast.Node, opts Options) (output string, err error) {
4242
}
4343

4444
// Re-panic unknown issues.
45-
panic(err)
45+
panic(rErr)
4646
}
4747
}()
4848

0 commit comments

Comments
 (0)