aboutsummaryrefslogtreecommitdiffstats
path: root/models/db/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/error.go')
-rw-r--r--models/db/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/error.go b/models/db/error.go
index 665e970e17..d47c7adac4 100644
--- a/models/db/error.go
+++ b/models/db/error.go
@@ -65,7 +65,7 @@ func (err ErrNotExist) Error() string {
if err.ID != 0 {
return fmt.Sprintf("%s does not exist [id: %d]", name, err.ID)
}
- return fmt.Sprintf("%s does not exist", name)
+ return name + " does not exist"
}
// Unwrap unwraps this as a ErrNotExist err