Class: Dependabot::Terraform::FileUpdaterErrorHandler
- Inherits:
-
Object
- Object
- Dependabot::Terraform::FileUpdaterErrorHandler
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/terraform/file_updater.rb
Constant Summary collapse
- RESOLVE_ERROR =
/Could not retrieve providers for locking/- CONSTRAINTS_ERROR =
/no available releases match/
Instance Method Summary collapse
Instance Method Details
#handle_helper_subprocess_failed_error(error) ⇒ Object
441 442 443 444 445 446 447 448 449 450 |
# File 'lib/dependabot/terraform/file_updater.rb', line 441 def handle_helper_subprocess_failed_error(error) unless (error.).match?(RESOLVE_ERROR) && (error.).match?(CONSTRAINTS_ERROR) return end raise Dependabot::DependencyFileNotResolvable, "Error while updating lockfile, " \ "no matching constraints found." end |
#sanitize_message(message) ⇒ Object
453 454 455 |
# File 'lib/dependabot/terraform/file_updater.rb', line 453 def () .gsub(/\e\[[\d;]*[A-Za-z]/, "").delete("\n").delete("│").squeeze(" ") end |