summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-20 14:20:39 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-20 14:20:39 -0700
commit3f0ec24dc1c18a550913beba8e742e0dbb4c7b42 (patch)
treefb3fc64433b99f8819ca6abe51b2f37082956b51 /store/store.go
parent8b3bbc5fb9b293f281b13797c299e620b00bfdec (diff)
downloadchat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.tar.gz
chat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.tar.bz2
chat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.zip
Fixing build
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 617ea7f2b..8dbf12b55 100644
--- a/store/store.go
+++ b/store/store.go
@@ -4,7 +4,9 @@
package store
import (
+ l4g "code.google.com/p/log4go"
"github.com/mattermost/platform/model"
+ "time"
)
type StoreResult struct {
@@ -17,6 +19,8 @@ type StoreChannel chan StoreResult
func Must(sc StoreChannel) interface{} {
r := <-sc
if r.Err != nil {
+ l4g.Close()
+ time.Sleep(time.Second)
panic(r.Err)
}