From 66989790b80fd570964247e8f722a28b1067b3dc Mon Sep 17 00:00:00 2001 From: Joachim Mairboeck Date: Wed, 6 Apr 2022 15:19:09 +0200 Subject: [PATCH] print errors on cerr this is needed to distinguish errors from legitimate output programmatically (when using -c) --- src/STEPToXSection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/STEPToXSection.cpp b/src/STEPToXSection.cpp index b3481f8..beb104d 100644 --- a/src/STEPToXSection.cpp +++ b/src/STEPToXSection.cpp @@ -782,11 +782,11 @@ int main(int argc, char* argv[]) { return EXIT_SUCCESS; } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl;; + std::cerr << ex.what() << std::endl; return EXIT_FAILURE; } catch (...) { - std::cout << "Unexpected exception" << std::endl; + std::cerr << "Unexpected exception" << std::endl; return EXIT_FAILURE; } }