print browser errors and fix error reporting