Skip to content

Commit ece47ed

Browse files
committed
[heroku] error when missing app argument to update
1 parent c6dcab2 commit ece47ed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Rakefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ task :update, :app do |task, args|
154154
require 'securerandom'
155155
require 'tmpdir'
156156

157+
unless args.app
158+
Formatador.display_line("[negative]! Error: App required, please run as `bundle exec rake update[app]`[/]")
159+
exit
160+
end
161+
157162
Formatador.display_line("[negative]<> updating Heroku stringer on [underline]#{args.app}[/]")
158163

159164
# grab netrc credentials, set by toolbelt via `heroku login`

0 commit comments

Comments
 (0)