SHIMADA Koji
null+****@clear*****
Mon Aug 13 12:34:08 JST 2012
SHIMADA Koji 2012-08-13 12:34:08 +0900 (Mon, 13 Aug 2012) New Revision: 05db4c7bd0bccb1e9493bb25c1d4320a2c50b2c1 https://github.com/logaling/logaling-command/commit/05db4c7bd0bccb1e9493bb25c1d4320a2c50b2c1 Merged 3c178f5: Merge pull request #74 from logaling/loga-new-no-project Log: Remove unnecessary 'rescue' Modified files: lib/logaling/repository.rb Modified: lib/logaling/repository.rb (+1 -3) =================================================================== --- lib/logaling/repository.rb 2012-08-13 12:33:06 +0900 (ac30106) +++ lib/logaling/repository.rb 2012-08-13 12:34:08 +0900 (0fa4673) @@ -46,11 +46,9 @@ module Logaling def create_personal_glossary(glossary_name, source_language, target_language) if glossary_exists?(glossary_name, source_language, target_language) - raise Logaling::GlossaryAlreadyRegistered + raise Logaling::GlossaryAlreadyRegistered, "The glossary '#{glossary_name}' already exists." end PersonalProject.create(personal_glossary_root_path, glossary_name, source_language, target_language) - rescue - raise Logaling::GlossaryAlreadyRegistered, "The glossary '#{glossary_name}' already exists." end def import(glossary_source) -------------- next part -------------- An HTML attachment was scrubbed... Télécharger