Skip to content

Commit

Permalink
Add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Takumasa Sakao committed Nov 6, 2018
1 parent c6f4f09 commit 233ef3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions format/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package format
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"

Expand All @@ -27,6 +28,8 @@ func Parse(r io.Reader) ([][]bool, error) {
switch DetectFormat(formatReader) {
case Life106:
return life106.Parse(contentReader), nil
case Life105:
return nil, fmt.Errorf("Life1.05 is not implemented")
default:
return rle.Parse(contentReader), nil
}
Expand Down

0 comments on commit 233ef3d

Please sign in to comment.