Merge pull request #858 from basecamp/match-does-not-exist

Match a "does not exist" error message
This commit is contained in:
Donal McBreen
2024-06-24 09:54:25 +01:00
committed by GitHub

View File

@@ -43,8 +43,8 @@ class Kamal::Cli::Build < Kamal::Cli::Base
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