diff --git a/CHANGELOG.md b/CHANGELOG.md index 88be182c..08094b9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ This changelog adheres to [Keep a CHANGELOG](https://keepachangelog.com). ### Added - (PA-5786) Add `postinstall_required_actions` forcing scriptlets to run in the %post section for rpm +### Changed +- (VANAGON-235) Report the actual URL when a Git URL is deemed invalid. + ## [0.41.0] - 2023-10-26 ### Added - (VANAGON-231) Added amazon linux 2023 platform for intel & arm diff --git a/lib/vanagon/component/source/git.rb b/lib/vanagon/component/source/git.rb index ef407112..f73acf61 100644 --- a/lib/vanagon/component/source/git.rb +++ b/lib/vanagon/component/source/git.rb @@ -106,7 +106,7 @@ def initialize(url, workdir:, **options) # rubocop:disable Metrics/AbcSize @clone_options = opts[:clone_options] ||= {} # We can test for Repo existence without cloning - raise Vanagon::InvalidRepo, "url is not a valid Git repo" unless valid_remote? + raise Vanagon::InvalidRepo, "\"#{url}\" is not a valid Git repo" unless valid_remote? end # Fetch the source. In this case, clone the repository into the workdir