A cli program to easily handle .gitignore files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
967 B

4 years ago
4 years ago
4 years ago
4 years ago
  1. /*! `error-chain` boilerplate and custom `Error` types */
  2. // Copyright 2020, Marcel Schneider <marcel@webschneider.org>
  3. // Create the Error, ErrorKind, ResultExt, and Result types
  4. error_chain! {
  5. foreign_links{
  6. Io(::std::io::Error) #[doc = "Link to a `std::io::Error` type."];
  7. }
  8. errors{
  9. NoGitRootFound {
  10. description("no git root found"),
  11. }
  12. TemplateNotFound(t: String) {
  13. description("could not find template"),
  14. display("could not find a template for {}", t),
  15. }
  16. TemplateNoDownloadUrl(name: String) {
  17. description("template has no download url"),
  18. display("template {} has no download url", name)
  19. }
  20. TemplateNoContent {
  21. description("template contains no content that could be used or written. try to `load_content` first.")
  22. }
  23. NoShellProvided {
  24. description("no shell provided"),
  25. }
  26. }
  27. }