-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
errors are moved to a separate file (#4)
Signed-off-by: Ruslan Semagin <[email protected]>
- Loading branch information
Showing
5 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package internal | ||
|
||
import "errors" | ||
|
||
var ( | ||
NoConfigError = errors.New("no config found in context") | ||
NoAccountFound = errors.New("account not found") | ||
NoAccountsFound = errors.New("no accounts found") | ||
NoItemsFound = errors.New("item not found") | ||
EmptyLogin = errors.New("login is empty") | ||
AccountAlreadyExists = errors.New("account already exists") | ||
EmptyPassword = errors.New("password is empty") | ||
PasswordTooShort = errors.New("password is too short") | ||
NoModulesFound = errors.New("no modules found") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters