summaryrefslogtreecommitdiffstats
path: root/api/admin.go
diff options
context:
space:
mode:
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
commit8e404c1dcf820cf767e9d6899e8c1efc7bb5ca96 (patch)
treeed96e0aff323aaf7a45d38896ea6a929dc320500 /api/admin.go
parent36c5c46e24f745ee80b49f47363217fcb740ce53 (diff)
downloadchat-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.go2
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()