diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-19 22:00:01 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-19 22:00:01 -0600 |
commit | 8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96 (patch) | |
tree | ed96e0aff323aaf7a45d38896ea6a929dc320500 /api/admin.go | |
parent | 36c5c46e24f745ee80b49f47363217fcb740ce53 (diff) | |
download | chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.gz chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.tar.bz2 chat-8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96.zip |
PLT-7 Adding translation function to context
Diffstat (limited to 'api/admin.go')
-rw-r--r-- | api/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/admin.go b/api/admin.go index 885a95d95..61741b445 100644 --- a/api/admin.go +++ b/api/admin.go @@ -41,7 +41,7 @@ func getLogs(c *Context, w http.ResponseWriter, r *http.Request) { file, err := os.Open(utils.GetLogFileLocation(utils.Cfg.LogSettings.FileLocation)) if err != nil { - c.Err = model.NewAppError("getLogs", "Error reading log file", err.Error()) + c.Err = model.NewAppError("getLogs", c.T("api.admin.file_read_error"), err.Error()) } defer file.Close() |