summaryrefslogtreecommitdiffstats
path: root/model/utils.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2015-11-19 17:12:05 +0100
committerWim <wim@42.be>2015-11-19 17:15:22 +0100
commit37729e86a1389cd47266959bbe0a3e93ccaf3f51 (patch)
tree28b380c0e7ac49fd39859606e9098b165e528996 /model/utils.go
parent5f848b74793f679772473a3b5b2ab247bcc927a9 (diff)
downloadchat-37729e86a1389cd47266959bbe0a3e93ccaf3f51.tar.gz
chat-37729e86a1389cd47266959bbe0a3e93ccaf3f51.tar.bz2
chat-37729e86a1389cd47266959bbe0a3e93ccaf3f51.zip
PLT-1087: return NewAppError instead of nil
Diffstat (limited to 'model/utils.go')
-rw-r--r--model/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/utils.go b/model/utils.go
index 6d6eb452d..ff26bfc66 100644
--- a/model/utils.go
+++ b/model/utils.go
@@ -53,7 +53,7 @@ func AppErrorFromJson(data io.Reader) *AppError {
if err == nil {
return &er
} else {
- return nil
+ return NewAppError("AppErrorFromJson", "could not decode", err.Error())
}
}