diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-01-25 15:05:39 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-01-25 15:05:39 -0500 |
commit | a911fbeca3873140c1eb9a9464416766114500e1 (patch) | |
tree | 6383f3c3a94896bfa9fe9b89f7fb744f08c91288 /store/sql_system_store.go | |
parent | 1701a2cbbe698c96544c275f41d7dbff4b88fd0c (diff) | |
parent | 69fbea225e4439775c9f3b8f5e5cabded0a5bf55 (diff) | |
download | chat-a911fbeca3873140c1eb9a9464416766114500e1.tar.gz chat-a911fbeca3873140c1eb9a9464416766114500e1.tar.bz2 chat-a911fbeca3873140c1eb9a9464416766114500e1.zip |
Merge pull request #1979 from ZBoxApp/PLT-7-stores
PLT-7: Refactoring stores to use translations (chunk 7)
Diffstat (limited to 'store/sql_system_store.go')
-rw-r--r-- | store/sql_system_store.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/store/sql_system_store.go b/store/sql_system_store.go index 1fbdfb333..cfd4a670f 100644 --- a/store/sql_system_store.go +++ b/store/sql_system_store.go @@ -37,7 +37,7 @@ func (s SqlSystemStore) Save(system *model.System) StoreChannel { result := StoreResult{} if err := s.GetMaster().Insert(system); err != nil { - result.Err = model.NewAppError("SqlSystemStore.Save", "We encountered an error saving the system property", "") + result.Err = model.NewLocAppError("SqlSystemStore.Save", "store.sql_system.save.app_error", nil, "") } storeChannel <- result @@ -55,7 +55,7 @@ func (s SqlSystemStore) Update(system *model.System) StoreChannel { result := StoreResult{} if _, err := s.GetMaster().Update(system); err != nil { - result.Err = model.NewAppError("SqlSystemStore.Save", "We encountered an error updating the system property", "") + result.Err = model.NewLocAppError("SqlSystemStore.Update", "store.sql_system.update.app_error", nil, "") } storeChannel <- result @@ -75,7 +75,7 @@ func (s SqlSystemStore) Get() StoreChannel { var systems []model.System props := make(model.StringMap) if _, err := s.GetReplica().Select(&systems, "SELECT * FROM Systems"); err != nil { - result.Err = model.NewAppError("SqlSystemStore.Get", "We encountered an error finding the system properties", "") + result.Err = model.NewLocAppError("SqlSystemStore.Get", "store.sql_system.get.app_error", nil, "") } else { for _, prop := range systems { props[prop.Name] = prop.Value |