mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
panic if NewCommand errors on NewServer
This commit is contained in:
parent
876ed56e30
commit
23f6acc165
1 changed files with 5 additions and 1 deletions
|
|
@ -80,7 +80,11 @@ type Command struct {
|
|||
|
||||
// NewCommand returns a new instance of Main.
|
||||
func NewCommand(stdin io.Reader, stdout, stderr io.Writer) *Command {
|
||||
s, _ := pilosa.NewServer()
|
||||
s, err := pilosa.NewServer()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return &Command{
|
||||
Server: s,
|
||||
Config: NewConfig(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue