good morning!!!!

Skip to content
Snippets Groups Projects
Commit b124e1f4 authored by Peter Kieltyka's avatar Peter Kieltyka
Browse files

Add upper: prefix to error messages for easier debugging

parent 1bae0224
No related branches found
No related tags found
No related merge requests found
......@@ -27,26 +27,26 @@ import (
// Shared error messages.
var (
ErrNoMoreRows = errors.New(`No more rows in this result set.`)
ErrNotConnected = errors.New(`You're currently not connected.`)
ErrMissingDatabaseName = errors.New(`Missing database name.`)
ErrMissingCollectionName = errors.New(`Missing collection name.`)
ErrCollectionDoesNotExist = errors.New(`Collection does not exist.`)
ErrSockerOrHost = errors.New(`You may connect either to a unix socket or a tcp address, but not both.`)
ErrQueryLimitParam = errors.New(`A query can accept only one db.Limit() parameter.`)
ErrQuerySortParam = errors.New(`A query can accept only one db.Sort{} parameter.`)
ErrQueryOffsetParam = errors.New(`A query can accept only one db.Offset() parameter.`)
ErrMissingConditions = errors.New(`Missing selector conditions.`)
ErrUnsupported = errors.New(`This action is currently unsupported on this database.`)
ErrUndefined = errors.New(`This value is undefined.`)
ErrQueryIsPending = errors.New(`Can't execute this instruction while the result set is still open.`)
ErrUnsupportedDestination = errors.New(`Unsupported destination type.`)
ErrUnsupportedType = errors.New(`This type does not support marshaling.`)
ErrUnsupportedValue = errors.New(`This value does not support unmarshaling.`)
ErrUnknownConditionType = errors.New(`Arguments of type %T can't be used as constraints.`)
ErrTooManyClients = errors.New(`Can't connect to database server: too many clients.`)
ErrGivingUpTryingToConnect = errors.New(`Giving up trying to connect: too many clients.`)
ErrMissingConnURL = errors.New(`Missing DSN`)
ErrNotImplemented = errors.New(`Call not implemented`)
ErrAlreadyWithinTransaction = errors.New(`Already within a transaction`)
ErrNoMoreRows = errors.New(`upper: no more rows in this result set.`)
ErrNotConnected = errors.New(`upper: you're currently not connected.`)
ErrMissingDatabaseName = errors.New(`upper: missing database name.`)
ErrMissingCollectionName = errors.New(`upper: missing collection name.`)
ErrCollectionDoesNotExist = errors.New(`upper: collection does not exist.`)
ErrSockerOrHost = errors.New(`upper: you may connect either to a unix socket or a tcp address, but not both.`)
ErrQueryLimitParam = errors.New(`upper: a query can accept only one db.Limit() parameter.`)
ErrQuerySortParam = errors.New(`upper: a query can accept only one db.Sort{} parameter.`)
ErrQueryOffsetParam = errors.New(`upper: a query can accept only one db.Offset() parameter.`)
ErrMissingConditions = errors.New(`upper: missing selector conditions.`)
ErrUnsupported = errors.New(`upper: this action is currently unsupported on this database.`)
ErrUndefined = errors.New(`upper: this value is undefined.`)
ErrQueryIsPending = errors.New(`upper: can't execute this instruction while the result set is still open.`)
ErrUnsupportedDestination = errors.New(`upper: unsupported destination type.`)
ErrUnsupportedType = errors.New(`upper: this type does not support marshaling.`)
ErrUnsupportedValue = errors.New(`upper: this value does not support unmarshaling.`)
ErrUnknownConditionType = errors.New(`upper: arguments of type %T can't be used as constraints.`)
ErrTooManyClients = errors.New(`upper: can't connect to database server: too many clients.`)
ErrGivingUpTryingToConnect = errors.New(`upper: giving up trying to connect: too many clients.`)
ErrMissingConnURL = errors.New(`upper: missing DSN`)
ErrNotImplemented = errors.New(`upper: call not implemented`)
ErrAlreadyWithinTransaction = errors.New(`upper: already within a transaction`)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment