improve error reporting in web demo