* fix #1806

* chore: refine error text
This commit is contained in:
Kevin Wan
2022-04-27 00:01:31 +08:00
committed by GitHub
parent 5c9fae7e62
commit 5bcee4cf7c
4 changed files with 57 additions and 8 deletions

View File

@@ -275,7 +275,7 @@ func Infov(v interface{}) {
infoAnySync(v)
}
// Must checks if err is nil, otherwise logs the err and exits.
// Must checks if err is nil, otherwise logs the error and exits.
func Must(err error) {
if err != nil {
msg := formatWithCaller(err.Error(), 3)