suggestion incorporating Brandon's comment
message.put_int(!!flags[:continue_on_error] ? 1 : 0)