improve error handling
improve error handling

krausest/js-framework-benchmark,krausest/js-framework-benchmark,krausest/js-framework-benchmark,krausest/js-framework-benchmark,krausest/js-framework-benchmark,krausest/js-framework-benchmark