Skip to content

Commit b17331a

Browse files
authored
Use exit_code over exit_status due to getting the wrong exit value when an exception happens. exit_status will be deprecated in future versions of crystal. Fixes #434 (#448)
1 parent 4a14a80 commit b17331a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lucky.cr

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ elsif task_precompiled?
4343
input: STDIN,
4444
output: STDOUT,
4545
error: STDERR
46-
).exit_status
46+
).exit_code
4747
elsif File.file?(tasks_file)
4848
exit Process.run(
4949
"crystal run #{tasks_file} -- #{args}",
5050
shell: true,
5151
input: STDIN,
5252
output: STDOUT,
5353
error: STDERR
54-
).exit_status
54+
).exit_code
5555
else
5656
puts <<-MISSING_TASKS_FILE
5757

0 commit comments

Comments
 (0)