lib/kamal/cli/build.rb in kamal-1.7.1 vs lib/kamal/cli/build.rb in kamal-1.7.2
- old
+ new
@@ -41,11 +41,11 @@
warn "Context hosts have changed, so re-creating builder, was: #{context_hosts.join(", ")}], now: #{KAMAL.builder.config_context_hosts.join(", ")}"
cli.remove
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
end
end