README.md in cogy-0.0.1 vs README.md in cogy-0.0.2

- old
+ new

@@ -91,11 +91,11 @@ # Paths in your application where the files that define the commands live in. # For example the default value will search for all `*.rb` files in the `cogy/` # directory relative to the root of your application. # # Default: ["cogy"] - config.command_load_paths = "cogy_commands/" + config.command_load_paths = "cogy" end ``` ## Usage @@ -125,12 +125,30 @@ result = req_args.map(&:to_i).inject(&op) "Hello @#{user}, the result is: #{result}" end ``` -## Credits +## Error template -TODO +When a command throws an error, the default error template is rendered, which +is the following: + + @<%= @user %>: Command '<%= @cmd %>' returned an error. + + ``` + <%= @exception.class %>:<%= @exception.message %> + ``` + +However it can be overriden in the application by creating a view in +`app/views/cogy/error.text.erb`. + +## Authors + +* [Agis Anastasopoulos](https://github.com/agis-) + +## License + +Cogy is licensed under MIT. See [LICENSE](LICENSE).