vfmt: exit(1) after vfmt-ing a file with a syntax error
parent
c6552d7780
commit
1e9ec6a126
|
@ -155,6 +155,7 @@ fn main() {
|
||||||
if foptions.is_c {
|
if foptions.is_c {
|
||||||
exit(2)
|
exit(2)
|
||||||
}
|
}
|
||||||
|
exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,7 +277,7 @@ fn (foptions &FormatOptions) post_process_file(file string, formatted_file_path
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (f FormatOptions) str() string {
|
fn (f FormatOptions) str() string {
|
||||||
return
|
return
|
||||||
'FormatOptions{ is_l: $f.is_l, is_w: $f.is_w, is_diff: $f.is_diff, is_verbose: $f.is_verbose,' +
|
'FormatOptions{ is_l: $f.is_l, is_w: $f.is_w, is_diff: $f.is_diff, is_verbose: $f.is_verbose,' +
|
||||||
' is_all: $f.is_all, is_worker: $f.is_worker, is_debug: $f.is_debug, is_noerror: $f.is_noerror,' +
|
' is_all: $f.is_all, is_worker: $f.is_worker, is_debug: $f.is_debug, is_noerror: $f.is_noerror,' +
|
||||||
' is_verify: $f.is_verify" }'
|
' is_verify: $f.is_verify" }'
|
||||||
|
|
Loading…
Reference in New Issue