Skip to content

Commit

Permalink
Fix compiler error message for broken source file (#14157)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Jan 3, 2024
1 parent 382041c commit 5e13683
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/crystal/command.cr
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ class Crystal::Command
filename = File.expand_path(filename)
Compiler::Source.new(filename, File.read(filename))
end
rescue exc : IO::Error
error exc
end

private def setup_simple_compiler_options(compiler, opts)
Expand Down

0 comments on commit 5e13683

Please sign in to comment.