gin mode unknown: show available mode (#2567)
Co-authored-by: thinkerou <thinkerou@gmail.com>
This commit is contained in:
parent
4d2dad5961
commit
e753c502dc
2
mode.go
2
mode.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user