Skip to content

Commit c3cbe59

Browse files
manta1130qryxip
andauthored
Change the process if rustfmt returns error
Co-authored-by: Ryo Yamashita <[email protected]>
1 parent d6ed636 commit c3cbe59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

expand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def output_file(filename):
111111
print(output_header, file=f)
112112
for i in output_data:
113113
print(i, file=f)
114-
output_data = subprocess.run(["rustfmt", temp_file])
114+
output_data = subprocess.run(["rustfmt", temp_file], check=True)
115115
with open(temp_file, 'r') as f:
116116
for line in f:
117117
print(line, end="")

0 commit comments

Comments
 (0)