[MM-56061] Only render where field in model.AppError when it's present (#25648)
* Only render where field in model.AppError when it's present * Remove trailing comma from permission error
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a54f927e3d
Коммит
5b6b425cfc
@@ -246,8 +246,11 @@ func (er *AppError) Error() string {
|
||||
var sb strings.Builder
|
||||
|
||||
// render the error information
|
||||
sb.WriteString(er.Where)
|
||||
sb.WriteString(": ")
|
||||
if er.Where != "" {
|
||||
sb.WriteString(er.Where)
|
||||
sb.WriteString(": ")
|
||||
}
|
||||
|
||||
if er.Message != NoTranslation {
|
||||
sb.WriteString(er.Message)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user