From f94005c39885d2b66b5f579232b4d6d295636a66 Mon Sep 17 00:00:00 2001 From: Nick Porcino Date: Thu, 13 Feb 2020 23:12:34 -0800 Subject: [PATCH] Make error reporting a bit more informative, rethrow a caught exception --- src/Common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Common.cpp b/src/Common.cpp index cdf59b4..44cb5e7 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -48,7 +48,8 @@ void NyquistIO::Load(AudioData * data, const std::string & path) } catch (const std::exception & e) { - std::cerr << "Caught internal exception: " << e.what() << std::endl; + std::cerr << "NyquistIO::Load(" << path << ") caught internal exception: " << e.what() << std::endl; + throw; } }