Enable more verbose error logging
This commit is contained in:
parent
2334d9f7a1
commit
ef839dfa22
1 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ type DSError struct {
|
||||||
|
|
||||||
// Error returns the string representation of the error.
|
// Error returns the string representation of the error.
|
||||||
func (e *DSError) Error() string {
|
func (e *DSError) Error() string {
|
||||||
return fmt.Sprintf("There was a problem connecting to the datastore")
|
return fmt.Sprintf("There was a problem connecting to the datastore: %s", e.Err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// DBError is an error which occurs when there is a
|
// DBError is an error which occurs when there is a
|
||||||
|
@ -35,7 +35,7 @@ type DBError struct {
|
||||||
|
|
||||||
// Error returns the string representation of the error.
|
// Error returns the string representation of the error.
|
||||||
func (e *DBError) Error() string {
|
func (e *DBError) Error() string {
|
||||||
return fmt.Sprintf("There was a problem writing to the database")
|
return fmt.Sprintf("There was a problem writing to the database: %s", e.Err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// TXError is an error which occurs when there is a
|
// TXError is an error which occurs when there is a
|
||||||
|
@ -46,7 +46,7 @@ type TXError struct {
|
||||||
|
|
||||||
// Error returns the string representation of the error.
|
// Error returns the string representation of the error.
|
||||||
func (e *TXError) Error() string {
|
func (e *TXError) Error() string {
|
||||||
return fmt.Sprintf("There was a problem with the transaction")
|
return fmt.Sprintf("There was a problem with the transaction: %s", e.Err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// CKError is an error which occurs when there is a
|
// CKError is an error which occurs when there is a
|
||||||
|
@ -57,7 +57,7 @@ type CKError struct {
|
||||||
|
|
||||||
// Error returns the string representation of the error.
|
// Error returns the string representation of the error.
|
||||||
func (e *CKError) Error() string {
|
func (e *CKError) Error() string {
|
||||||
return fmt.Sprintf("This cipherkey used is not valid")
|
return fmt.Sprintf("This cipherkey used is not valid: %s", e.Err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// KVError is an error which occurs when there is a
|
// KVError is an error which occurs when there is a
|
||||||
|
|
Loading…
Reference in a new issue