Skip to content

Commit a3c881d

Browse files
jacksonpiresclaude
andcommitted
[Bug Fix] Exit with non-zero status when components are missing
`validate_components!` used a bare `exit`, which in Ruby is `exit(true)` and yields exit status 0. A failed generation therefore reported success to the shell, so CI steps and scripts gating on the exit code treated missing-component errors as passing runs. Use `exit 1` so the failure is observable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3f4fe74 commit a3c881d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gem/lib/generators/ruby_ui/component_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def validate_components!
3131
return if missing.empty?
3232

3333
say "Component(s) not found: #{missing.join(", ")}", :red
34-
exit
34+
exit 1
3535
end
3636

3737
def copy_related_component_files(component_name)

0 commit comments

Comments
 (0)