lib/spoom/cli/helper.rb in spoom-1.0.6 vs lib/spoom/cli/helper.rb in spoom-1.0.7

- old
+ new

@@ -35,10 +35,14 @@ # # Display an error message and exit otherwise. sig { void } def in_sorbet_project! unless in_sorbet_project? - say_error("not in a Sorbet project (no sorbet/config)") + say_error( + "not in a Sorbet project (#{colorize(sorbet_config, :yellow)} not found)\n\n" \ + "When running spoom from another path than the project's root, " \ + "use #{colorize('--path PATH', :blue)} to specify the path to the root." + ) Kernel.exit(1) end end # Return the path specified through `--path`