guard pre-err() warn() calls