propagate error code
Merge branch 'master' of https://github.com/glu14856/lottery