Fix pods_error(): reversed logic that was emitting an error instead of throwing an exception when $display_errors is false