Re: [interchange] Correct logic of DisplayErrors
David Christensen <[email protected]> Mon, 11 Sep 2017 16:50:57 -0500
| Newsgroups | gmane.comp.web.interchange.users |
|---|---|
| Message-ID | <[email protected]> |
> On Sep 11, 2017, at 12:27 PM, David Christensen <[email protected]> wrote: > > Hi Mike, > > From HEAD^ (i.e., before my patch), we have the following in lib/Vend/Util.pm: > > $Vend::Errors .= $msg . "\n" > if $Vend::Cfg->{DisplayErrors} || $Global::DisplayErrors; > > So this should be changed to also be &&, yes? I’m happy to revert and fix this call site instead, since it sounds like there is an established reason and it wasn’t an oversight as I’d assumed. :-) Upon reviewing this, I’ve decided to leave things as-is; this instance occurs within `logError()` which I believe could be called in either a global context or a catalog-level context. I’m not convinced that turning this into an && won’t break this when called in a global context. If you think I’m wrong about being wrong here :-), please feel free to push a correction for this instance. I did go ahead and push a reversion to the commit which changed this logic. Best, David -- David Christensen End Point Corporation [email protected] 785-727-1171 _______________________________________________ interchange-users mailing list [email protected] http://www.icdevgroup.org/mailman/listinfo/interchange-users
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJZtwVBAAoJEDdKI8nfm2W4rssP/jwPj0yd/rSNPm3o7j+s2sAN Gml8+IWDDIXe8La0jfiOfXIYOo24sdctlC7hzS9XtwBOy+vM1XRpU6hG2XQN6kcL oWwXZoHEP3jmlLyy3a6ppgNJmEMKlFj9AO1GAochhIXvprAi1Z7H4TA2psmphC/T rjfKCCWSb5nGT3pUFQY90IKbuaIw6T0FoW2jzp2U2NhoouoYsqkpYUatm9Bhrn18 pv0upJVQou5d04S+1xXAUzaKkaqoGxQc/WZpvzq06AZ8n4EwbnYPOmC3ytJU+MBN EXyaQu0gY1ZOWbuwaFC6Mo0MaasboxRYs4peLzSRoac9qZjztBuvTEZZDGJManRG KZhjDWssZSwGJ8ghxsZL0kxH2aIpeUVa2EnSyvZLm0d5L9p5uBTKOgsw/WVJ4IlP UifAvWLY1KrSYeTZfcAyGvOnDviFSSIKp802dr+CcRkwLGiUpv1rbtiw3/N0fDL6 nzOlk8fDK1X24EZwQIREVs+gnU6zq8/mKpFK8nml7XKrAGTCWJnWDVgnwqvF3a62 EZf1d7QxT3LP4Y2Sy7RMApsS+YXHIHGFyxB11LHRc0THe2PlopvJPsQbMlGaaYUd L+FhDuSkd110KNJLk5KDrHsALCm8jvzkHz8VO+9jo+B+bi0KK7gdBhCTLK5YAlU/ T1s4Lu4nMDEGCmNJABDO =bWIN -----END PGP SIGNATURE-----