diff --git a/src/compiler/crystal/command.cr b/src/compiler/crystal/command.cr index 69b4ab2d221c..97bf46feb663 100644 --- a/src/compiler/crystal/command.cr +++ b/src/compiler/crystal/command.cr @@ -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)