gin mode unknown: show available mode (#2567)

Co-authored-by: thinkerou <thinkerou@gmail.com>
This commit is contained in:
Rubi 2021-01-11 23:03:31 +07:00 committed by GitHub
parent 4d2dad5961
commit e753c502dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func SetMode(value string) {
case TestMode: case TestMode:
ginMode = testCode ginMode = testCode
default: default:
panic("gin mode unknown: " + value) panic("gin mode unknown: " + value + " (available mode: debug release test)")
} }
modeName = value modeName = value