Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.yml中summary_lines设置BUG #108

Open
alairs opened this issue Mar 31, 2016 · 1 comment
Open

config.yml中summary_lines设置BUG #108

alairs opened this issue Mar 31, 2016 · 1 comment

Comments

@alairs
Copy link

alairs commented Mar 31, 2016

config.yml中summary_lines设为5以下的数字时,就会报错,如下:

aquan@edge40 MINGW32 /f/Btsync/alair
$ gor compile
2016/03/31 11:04:54 gor.go:46: gor ver 3.7.0
2016/03/31 11:04:54 payload.go:37: root= F:\Btsync\alair
2016/03/31 11:04:54 payload.go:611: >>> F:\Btsync\alair\themes/aquan/layouts/
2016/03/31 11:04:54 payload.go:657: Load Layout : default
2016/03/31 11:04:54 payload.go:657: Load Layout : page
2016/03/31 11:04:54 payload.go:657: Load Layout : post
2016/03/31 11:04:54 config.go:46: Look lile a Json, try it
2016/03/31 11:04:54 config.go:49: It is Json Map
panic: interface conversion: interface is int, not int64

goroutine 1 [running]:
panic(0x74b720, 0x110ba6c0)
C:/Go/src/runtime/panic.go:464 +0x326
github.com/wendal/gor.BaiscHelpers(0x10f96a60, 0x110ba4c0, 0x382918, 0x110ba5e0)
D:/gopath/src/github.com/wendal/gor/compile.go:173 +0x209
github.com/wendal/gor.Compile(0x0, 0x0)
D:/gopath/src/github.com/wendal/gor/compile.go:73 +0x948
main._compile()
D:/gopath/src/github.com/wendal/gor/gor/gor.go:143 +0x1e
main.main()
D:/gopath/src/github.com/wendal/gor/gor/gor.go:95 +0x22d

@wendal
Copy link
Owner

wendal commented Mar 31, 2016

额, 5以下.... 行,算个bug,我看看怎么改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants