From facc69d70ca6c4188245547490e99cd5c7aeeb55 Mon Sep 17 00:00:00 2001 From: Ali Date: Sat, 13 Mar 2021 17:33:28 -0500 Subject: [PATCH] Added new error: ErrDBNotFoundInContext --- errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/errors.go b/errors.go index 5f464d2b..1035d9df 100644 --- a/errors.go +++ b/errors.go @@ -37,4 +37,6 @@ var ( ErrInvalidValue = errors.New("invalid value") // ErrInvalidValueOfLength invalid values do not match length ErrInvalidValueOfLength = errors.New("invalid association values, length doesn't match") + // ErrDBNotFoundInContext when gorm.DB not found in the context + ErrDBNotFoundInContext = errors.New("DB not found in context") )