remove panic from log.go

pull/820/head
Xiang Li 2013-07-22 14:32:52 -07:00
parent d170e3e958
commit aaf304693e
1 changed files with 0 additions and 2 deletions

2
log.go
View File

@ -175,7 +175,6 @@ func (l *Log) open(path string) error {
_, err = fmt.Fscanf(l.file, "%8x\n", &commitIndex)
debugln("log.open.commitIndex is ", commitIndex)
if err != nil {
panic(err)
return err
}
@ -210,7 +209,6 @@ func (l *Log) open(path string) error {
// Lookup and decode command.
command, err := newCommand(entry.CommandName, entry.Command)
if err != nil {
panic(err)
l.file.Close()
return err
}