Improved error reporting (fixed #1285)
Added type checking
Merge pull request #1287 from dinhviethoa/1285-webstore-error-reporting

Improved webstore error reporting