Skip to content

Commit

Permalink
Merge pull request basecamp#858 from basecamp/match-does-not-exist
Browse files Browse the repository at this point in the history
Match a "does not exist" error message
  • Loading branch information
djmb authored Jun 24, 2024
2 parents 4697f89 + 69fa728 commit f21dc30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kamal/cli/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def push
cli.create
end
rescue SSHKit::Command::Failed => e
warn "Missing compatible builder, so creating a new one first"
if e.message =~ /(context not found|no builder)/
if e.message =~ /(context not found|no builder|does not exist)/
warn "Missing compatible builder, so creating a new one first"
cli.create
else
raise
Expand Down

0 comments on commit f21dc30

Please sign in to comment.