svoid failOrWarn(bool fail, S msg) { if (fail) fail(msg); else warn(msg); }