summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-03-15 00:12:17 -0400
committerDavid Robillard <d@drobilla.net>2018-03-15 00:12:17 -0400
commitf0b15b9931904d24025ba0b6d1d175661538b60d (patch)
tree055d0a2f43d40fa1818b69d384c5e1dedb2bb5bb /src/server
parent85f207e2bfe1ba8c6124643ccf3b9efa0feffa0e (diff)
downloadingen-f0b15b9931904d24025ba0b6d1d175661538b60d.tar.gz
ingen-f0b15b9931904d24025ba0b6d1d175661538b60d.tar.bz2
ingen-f0b15b9931904d24025ba0b6d1d175661538b60d.zip
Clean up compile exception handler
Diffstat (limited to 'src/server')
-rw-r--r--src/server/CompiledGraph.cpp5
1 files changed, 2 insertions, 3 deletions
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<CompiledGraph>(&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<CompiledGraph>();
}