null+****@clear*****
null+****@clear*****
Mon Jun 25 11:40:01 JST 2012
SHIMADA Koji 2012-06-25 11:40:01 +0900 (Mon, 25 Jun 2012) New Revision: 486fed43159c2454f8551478426497bc57d6ace8 https://github.com/logaling/logaling-command/commit/486fed43159c2454f8551478426497bc57d6ace8 Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Report if project doesn't exist Modified files: lib/logaling/command/application.rb Modified: lib/logaling/command/application.rb (+3 -1) =================================================================== --- lib/logaling/command/application.rb 2012-06-25 11:34:47 +0900 (c4a6000) +++ lib/logaling/command/application.rb 2012-06-25 11:40:01 +0900 (89f7a6f) @@ -243,6 +243,7 @@ module Logaling::Command @repository.index if****@confi***** project =****@repos*****_project(@config.glossary) + raise Logaling::ProjectNotFound unless project glossary = project.find_glossary(@config.source_language, @config.target_language) else glossary = nil @@ -270,6 +271,8 @@ module Logaling::Command else "source-term <#{source_term}> not found" end + rescue Logaling::ProjectNotFound + say "glossary <#{@config.glossary}> not found" rescue Logaling::CommandFailed, Logaling::TermError => e say e.message end @@ -303,7 +306,6 @@ module Logaling::Command else "glossary <#{@config.glossary}> not found" end - rescue Logaling::CommandFailed, Logaling::GlossaryDBNotFound => e say e.message end -------------- next part -------------- An HTML attachment was scrubbed... 다운로드