From a6ce42608fbbde8c57929deb930a7fee9f45a305 Mon Sep 17 00:00:00 2001 From: John Romein <romein@astron.nl> Date: Thu, 16 Aug 2007 14:19:34 +0000 Subject: [PATCH] BugID: 225 Print what is wrong if an exception is caught. --- Appl/CEP/CS1/CS1_Storage/src/MSWriter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Appl/CEP/CS1/CS1_Storage/src/MSWriter.cc b/Appl/CEP/CS1/CS1_Storage/src/MSWriter.cc index 2ee69796a71..42bf67d200f 100644 --- a/Appl/CEP/CS1/CS1_Storage/src/MSWriter.cc +++ b/Appl/CEP/CS1/CS1_Storage/src/MSWriter.cc @@ -125,8 +125,9 @@ namespace LOFAR } catch (AipsError x) { cerr << "AIPS exception in MSWriterImpl: " << x.getMesg() << endl; exit(0); - } catch (...) { - cerr << "Unexpected MSWriter exception during write" << endl; + } catch (std::exception &ex) { + cerr << "Unexpected MSWriter exception during write:" << ex.what() << endl; + perror("perror returns: "); exit(0); } } -- GitLab