Refactoring, added remaining custom errors
This commit is contained in:
parent
424e912f6c
commit
ee3518ab5c
5 changed files with 77 additions and 36 deletions
15
cli/errors.go
Normal file
15
cli/errors.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
type GenericCliAgumentError struct {
|
||||
Msg string
|
||||
}
|
||||
|
||||
func (err *GenericCliAgumentError) Error() string {
|
||||
return err.Msg
|
||||
}
|
||||
|
||||
type GenericDownloadError struct {}
|
||||
|
||||
func (err *GenericDownloadError) Error() string {
|
||||
return "download failed"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue