From f8d8bf37bf55a44eb1569c801f065f01da195da2 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Fri, 19 Apr 2013 00:25:04 +0200 Subject: [PATCH] Fail gracefully when updating a module that does not exist Instead of causing a nil error later on --- lib/librarian/manifest_set.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librarian/manifest_set.rb b/lib/librarian/manifest_set.rb index 6e966f2e..3ee5cf91 100644 --- a/lib/librarian/manifest_set.rb +++ b/lib/librarian/manifest_set.rb @@ -137,6 +137,7 @@ def dependencies_of(names) next if deps.include?(name) deps << name + raise(Error, "Unable to find module #{name}") if index[name].nil? names.concat index[name].dependencies.map(&:name) end deps.to_a