We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9cd5c commit 1dff124Copy full SHA for 1dff124
lib/metadata_json_deps.rb
@@ -9,7 +9,11 @@ def initialize(cache = {})
9
10
def get_module(name)
11
name = PuppetForge::V3.normalize_name(name)
12
- @cache[name] ||= PuppetForge::Module.find(name)
+ begin
13
+ @cache[name] ||= PuppetForge::Module.find(name)
14
+ rescue Faraday::ResourceNotFound
15
+ raise PuppetForge::ModuleNotFound.new("Dependency #{name} not found on forge.puppet.com")
16
+ end
17
end
18
19
0 commit comments