From 344836dfb22fb36d4d2740c5ec226de78d9dcd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 19 Jun 2018 19:40:26 +0200 Subject: Add missed translations (#8959) --- utils/file_backend_s3.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/file_backend_s3.go') diff --git a/utils/file_backend_s3.go b/utils/file_backend_s3.go index 1772f09ea..6f1fa9ab0 100644 --- a/utils/file_backend_s3.go +++ b/utils/file_backend_s3.go @@ -62,12 +62,12 @@ func (b *S3FileBackend) s3New() (*s3.Client, error) { func (b *S3FileBackend) TestConnection() *model.AppError { s3Clnt, err := b.s3New() if err != nil { - return model.NewAppError("TestFileConnection", "Bad connection to S3 or minio.", nil, err.Error(), http.StatusInternalServerError) + return model.NewAppError("TestFileConnection", "api.file.test_connection.s3.connection.app_error", nil, err.Error(), http.StatusInternalServerError) } exists, err := s3Clnt.BucketExists(b.bucket) if err != nil { - return model.NewAppError("TestFileConnection", "Error checking if bucket exists.", nil, err.Error(), http.StatusInternalServerError) + return model.NewAppError("TestFileConnection", "api.file.test_connection.s3.bucket_exists.app_error", nil, err.Error(), http.StatusInternalServerError) } if !exists { @@ -75,7 +75,7 @@ func (b *S3FileBackend) TestConnection() *model.AppError { err := s3Clnt.MakeBucket(b.bucket, b.region) if err != nil { mlog.Error("Unable to create bucket.") - return model.NewAppError("TestFileConnection", "Unable to create bucket", nil, err.Error(), http.StatusInternalServerError) + return model.NewAppError("TestFileConnection", "api.file.test_connection.s3.bucked_create.app_error", nil, err.Error(), http.StatusInternalServerError) } } mlog.Info("Connection to S3 or minio is good. Bucket exists.") -- cgit v1.2.3-1-g7c22