From 26fb5c568404ac60f08603fc290421a60bd92b44 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 18 Jul 2016 23:01:45 +0100 Subject: [PATCH] Simplify public error messages --- kvs/err.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kvs/err.go b/kvs/err.go index 95efab1c..7643fb8a 100644 --- a/kvs/err.go +++ b/kvs/err.go @@ -24,7 +24,7 @@ type DSError struct { // Error returns the string representation of the error. func (e *DSError) Error() string { - return fmt.Sprintf("There was a problem connecting to the datastore: %s", e.Err.Error()) + return fmt.Sprintf("There was a problem connecting to the datastore") } // 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. func (e *DBError) Error() string { - return fmt.Sprintf("There was a problem writing to the database: %s", e.Err.Error()) + return fmt.Sprintf("There was a problem writing to the database") } // 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. func (e *TXError) Error() string { - return fmt.Sprintf("There was a problem with the transaction: %s", e.Err.Error()) + return fmt.Sprintf("There was a problem with the transaction") } // 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. func (e *CKError) Error() string { - return fmt.Sprintf("This cipherkey used is not valid: %s", e.Err.Error()) + return fmt.Sprintf("This cipherkey used is not valid") } // KVError is an error which occurs when there is a