Reorganized file structure
This commit is contained in:
parent
8b595ef3ce
commit
722d07c321
57 changed files with 431 additions and 614 deletions
|
@ -1,17 +0,0 @@
|
|||
package errors
|
||||
|
||||
import "fmt"
|
||||
|
||||
// InvalidDirectory errors are returned when the specified path is not a directory.
|
||||
type InvalidDirectory struct {
|
||||
Path string
|
||||
}
|
||||
|
||||
// Error implements the text representation.
|
||||
func (err *InvalidDirectory) Error() string {
|
||||
if err.Path == "" {
|
||||
return "Invalid directory"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("Invalid directory '%s'", err.Path)
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package errors
|
||||
|
||||
import "fmt"
|
||||
|
||||
// RegisterInUse errors are returned when a register is already in use.
|
||||
type RegisterInUse struct {
|
||||
Register string
|
||||
User string
|
||||
}
|
||||
|
||||
// Error implements the text representation.
|
||||
func (err *RegisterInUse) Error() string {
|
||||
return fmt.Sprintf("Register '%s' already used by '%s'", err.Register, err.User)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue