Skip to content

Commit 2d7899b

Browse files
committed
[SwiftSyntax] Decode error message in incr_transefer_round_trip.py
Otherwise, we output the error as a binary string. I think this started happening with the switch to Python 3.
1 parent 2f0ae44 commit 2d7899b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/incrparse/incr_transfer_round_trip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def main():
9393
print('Test case "%s" of %s FAILed' % (test_case, test_file),
9494
file=sys.stderr)
9595
print('Parsing the swift file failed:\n', file=sys.stderr)
96-
print(e.output, file=sys.stderr)
96+
print(e.output.decode('UTF-8'), file=sys.stderr)
9797
sys.exit(1)
9898

9999
# Check if the two syntax trees are the same

0 commit comments

Comments
 (0)