]> git.notmuchmail.org Git - sup/commitdiff
Made error message for unknown source better (http://rubyforge.org/forum/message...
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 8 Mar 2007 22:31:07 +0000 (22:31 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Thu, 8 Mar 2007 22:31:07 +0000 (22:31 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@346 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-import

index c0c635ce6042490119d403d294b8124a65a50efd..a1eadfa2baa6656fcf1df02e157b1dfa22a995dc 100644 (file)
@@ -61,7 +61,7 @@ index.load
 
 sources = ARGV.map do |uri|
   uri = "mbox://#{uri}" unless uri =~ %r!://!
-  index.source_for uri or raise "Unknown source: #{uri}"
+  index.source_for uri or Trollop::die "Unknown source: #{uri}. Did you add it with sup-add first?"
 end
 
 sources = index.usual_sources if sources.empty?