mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
WebClient: allow to pass args for localized errors from the backend
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -144,7 +144,7 @@ func i18nFsMsg(status int) string {
|
||||
func getI18NErrorString(err error, fallback string) string {
|
||||
var errI18n *util.I18nError
|
||||
if errors.As(err, &errI18n) {
|
||||
return errI18n.I18nMessage
|
||||
return errI18n.Message
|
||||
}
|
||||
return fallback
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user