null+****@clear*****
null+****@clear*****
Tue Jun 26 15:32:34 JST 2012
SUZUKI Miho 2012-06-26 15:32:34 +0900 (Tue, 26 Jun 2012) New Revision: 0d1af73b5ed807135aedce7c683c06f0a62c21bb https://github.com/logaling/logaling-command/commit/0d1af73b5ed807135aedce7c683c06f0a62c21bb Merged 7228757: Merge pull request #60 from logaling/refactor-structure Log: Add message for next step Modified files: lib/logaling/command/application.rb Modified: lib/logaling/command/application.rb (+10 -5) =================================================================== --- lib/logaling/command/application.rb 2012-06-26 15:06:42 +0900 (b5293cb) +++ lib/logaling/command/application.rb 2012-06-26 15:32:34 +0900 (8e4bb4e) @@ -187,7 +187,8 @@ module Logaling::Command rescue Logaling::GlossaryNotFound => e say "Try 'loga new or register' first." rescue Logaling::ProjectNotFound - say "glossary <#{@config.glossary}> not found" + say "glossary <#{@config.glossary}> not found." + say "Try 'loga list' and confirm glossary name." end desc 'delete [SOURCE TERM] [TARGET TERM(optional)] [--force(optional)]', 'Delete term.' @@ -214,7 +215,8 @@ module Logaling::Command rescue Logaling::GlossaryNotFound => e say "Try 'loga new or register' first." rescue Logaling::ProjectNotFound - say "glossary <#{@config.glossary}> not found" + say "glossary <#{@config.glossary}> not found." + say "Try 'loga list' and confirm glossary name." end desc 'update [SOURCE TERM] [TARGET TERM] [NEW TARGET TERM] [NOTE(optional)]', 'Update term.' @@ -239,7 +241,8 @@ module Logaling::Command rescue Logaling::GlossaryNotFound => e say "Try 'loga new or register' first." rescue Logaling::ProjectNotFound - say "glossary <#{@config.glossary}> not found" + say "glossary <#{@config.glossary}> not found." + say "Try 'loga list' and confirm glossary name." end desc 'lookup [TERM]', 'Lookup terms.' @@ -281,7 +284,8 @@ module Logaling::Command "source-term <#{source_term}> not found" end rescue Logaling::ProjectNotFound - say "glossary <#{@config.glossary}> not found" + say "glossary <#{@config.glossary}> not found." + say "Try 'loga list' and confirm glossary name." rescue Logaling::CommandFailed, Logaling::TermError => e say e.message end @@ -319,7 +323,8 @@ module Logaling::Command rescue Logaling::CommandFailed, Logaling::GlossaryDBNotFound => e say e.message rescue Logaling::ProjectNotFound - say "glossary <#{@config.glossary}> not found" + say "glossary <#{@config.glossary}> not found." + say "Try 'loga list' and confirm glossary name." end desc 'list', 'Show glossary list.' -------------- next part -------------- An HTML attachment was scrubbed... 下载