-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Formatting, extract error messages * More refactor * Move errors to a separate file * Add missing file * Misc
- Loading branch information
Showing
6 changed files
with
108 additions
and
65 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,19 @@ | ||
package api | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
var ( | ||
errNotConnected = errors.New("Not connected") | ||
errNotPermitted = errors.New("Not permitted") | ||
errConnStringRequired = errors.New("Connection string is required") | ||
errInvalidConnString = errors.New("Invalid connection string") | ||
errSessionRequired = errors.New("Session ID is required") | ||
errSessionLocked = errors.New("Session is locked") | ||
errURLRequired = errors.New("URL parameter is required") | ||
errQueryRequired = errors.New("Query parameter is required") | ||
errDatabaseNameRequired = errors.New("Database name is required") | ||
errPgDumpNotFound = errors.New("pg_dump utility is not found") | ||
errBackendConnectError = errors.New("Unable to connect to the auth backend") | ||
) |
Oops, something went wrong.