From f0b15b9931904d24025ba0b6d1d175661538b60d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Mar 2018 00:12:17 -0400 Subject: Clean up compile exception handler --- src/server/CompiledGraph.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp index 71cf0831..f31fa595 100644 --- a/src/server/CompiledGraph.cpp +++ b/src/server/CompiledGraph.cpp @@ -52,14 +52,13 @@ CompiledGraph::compile(Raul::Maid& maid, GraphImpl& graph) { try { return maid.make_managed(&graph); - } catch (FeedbackException e) { + } catch (const FeedbackException& e) { Log& log = graph.engine().log(); if (e.node && e.root) { log.error(fmt("Feedback compiling %1% from %2%\n") % e.node->path() % e.root->path()); } else { - log.error(fmt("Feedback compiling %1%\n") - % e.node->path()); + log.error(fmt("Feedback compiling %1%\n") % e.node->path()); } return MPtr(); } -- cgit v1.2.1