From 69d100a2427e5ae6f85566745352976fe427bb45 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Fri, 29 Jan 2021 10:26:14 -0500 Subject: [PATCH] Verbose output when failing IRDB write back --- irdb-libs/thanos/thanos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irdb-libs/thanos/thanos.cpp b/irdb-libs/thanos/thanos.cpp index 2df5b9c76..9673d87d2 100644 --- a/irdb-libs/thanos/thanos.cpp +++ b/irdb-libs/thanos/thanos.cpp @@ -163,8 +163,8 @@ int main(int argc, char* argv[]) const int result = ThanosPlugin_t::saveChanges(); if(result != 0) { - *thanos_log << "A critical step failed: " << (thanos_plugins.back())->getStepName() - << endl; + *real_cerr << "A critical step failed (possibly while writing the IR back to the IRDB):\n\t " << (thanos_plugins.back())->getStepName() << endl; + *thanos_log << "A critical step failed: " << (thanos_plugins.back())->getStepName() << endl; *thanos_log << "If DEBUG_STEPS is not on, this failure could " << "be due to an earlier critical step." << endl; return 1; // critical step failed, abort -- GitLab