From 8b05fecede5caa80a3176a11f6e696904adc184e Mon Sep 17 00:00:00 2001 From: Julius Chrobak Date: Tue, 31 Dec 2013 13:37:19 +0100 Subject: [PATCH] treating any error while loading files as fatal in the server mode --- src/comp/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/comp/main.go b/src/comp/main.go index 5d98021..9754d99 100644 --- a/src/comp/main.go +++ b/src/comp/main.go @@ -65,7 +65,11 @@ func Command(expr, files string, cores int) error { func Server(bind, files string, cores int, init func(Store)) error { setCores(cores) - store, _ := BuildStore(files) + store, e := BuildStore(files) + if e != nil { + return e + } + if init != nil { init(store) }