Skip to content

Commit 233ef3d

Browse files
author
Takumasa Sakao
committed
Add error message
1 parent c6f4f09 commit 233ef3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

format/parse.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package format
33
import (
44
"bufio"
55
"bytes"
6+
"fmt"
67
"io"
78
"io/ioutil"
89

@@ -27,6 +28,8 @@ func Parse(r io.Reader) ([][]bool, error) {
2728
switch DetectFormat(formatReader) {
2829
case Life106:
2930
return life106.Parse(contentReader), nil
31+
case Life105:
32+
return nil, fmt.Errorf("Life1.05 is not implemented")
3033
default:
3134
return rle.Parse(contentReader), nil
3235
}

0 commit comments

Comments
 (0)