From d966376e446dc01b234cb7c8db28c256c3944498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=B7=E6=BA=AA?= Date: Mon, 23 Apr 2018 16:57:59 +0800 Subject: [PATCH] grammar mistakes in output error message (#909) * grammar mistakes in output error message `Not found table` => `Table not found` `Field is not exist` => `Field does not exist` * Update error.go --- error.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/error.go b/error.go index 1694683cf..5dc6b84eb 100644 --- a/error.go +++ b/error.go @@ -13,21 +13,21 @@ var ( // ErrParamsType params error ErrParamsType = errors.New("Params type error") // ErrTableNotFound table not found error - ErrTableNotFound = errors.New("Not found table") + ErrTableNotFound = errors.New("Table not found") // ErrUnSupportedType unsupported error ErrUnSupportedType = errors.New("Unsupported type error") - // ErrNotExist record is not exist error - ErrNotExist = errors.New("Not exist error") + // ErrNotExist record does not exist error + ErrNotExist = errors.New("Record does not exist") // ErrCacheFailed cache failed error ErrCacheFailed = errors.New("Cache failed") // ErrNeedDeletedCond delete needs less one condition error - ErrNeedDeletedCond = errors.New("Delete need at least one condition") + ErrNeedDeletedCond = errors.New("Delete action needs at least one condition") // ErrNotImplemented not implemented ErrNotImplemented = errors.New("Not implemented") // ErrConditionType condition type unsupported - ErrConditionType = errors.New("Unsupported conditon type") - // ErrColumnIsNotExist columns is not exist - ErrFieldIsNotExist = errors.New("Field is not exist") + ErrConditionType = errors.New("Unsupported condition type") + // ErrFieldIsNotExist columns does not exist + ErrFieldIsNotExist = errors.New("Field does not exist") ) // ErrFieldIsNotValid is not valid