output error message when model is invalid
Merge remote-tracking branch 'upstream/master'
Merge pull request #38 from yyken/master

output error message when model is invalid