From fe9be7925ef6fffa24309be3be498b9af54ffc6d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Sep 2018 21:19:02 +0200 Subject: Fix catch of polymorphic exception by value --- src/server/CompiledGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp index c2160c75..35b07935 100644 --- a/src/server/CompiledGraph.cpp +++ b/src/server/CompiledGraph.cpp @@ -64,7 +64,7 @@ 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") -- cgit v1.2.1