return the actual error value instead of the constant 1 from _render_template