Jacek Caban : jscript: Directly return error code instead of using throw_generic_error.