diff --git a/src/compiler/crystal/command.cr b/src/compiler/crystal/command.cr index 70a853071b6c..578307a0e5b3 100644 --- a/src/compiler/crystal/command.cr +++ b/src/compiler/crystal/command.cr @@ -462,6 +462,8 @@ class Crystal::Command error "You have input an invalid format, only text and JSON are supported" end + error "maximum number of threads cannot be lower than 1" if compiler.n_threads < 1 + if !no_codegen && !run && Dir.exists?(output_filename) error "can't use `#{output_filename}` as output filename because it's a directory" end