diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 19:09:21 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:52:29 +0100 |
commit | b512f9a27b3538fdde7999ee5d3f40a480b0d361 (patch) | |
tree | 0c3ee4f61eaddae4510e47d28b9e85a7de41aa95 /src/PatchageEvent.cpp | |
parent | 320f988a5ee586235f785b15028c7ef777e981a0 (diff) | |
download | patchage-b512f9a27b3538fdde7999ee5d3f40a480b0d361.tar.gz patchage-b512f9a27b3538fdde7999ee5d3f40a480b0d361.tar.bz2 patchage-b512f9a27b3538fdde7999ee5d3f40a480b0d361.zip |
Use a consistent style for log messages
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index af3ed61..ce9cd48 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -70,11 +70,11 @@ PatchageEvent::execute(Patchage* patchage) PatchagePort* port = driver->create_port_view(patchage, _port_1); if (!port) { patchage->log().error(fmt::format( - "Unable to create view for port `{}'", _port_1)); + "Unable to create view for port \"{}\"", _port_1)); } } else { patchage->log().error( - fmt::format("Unknown type for port `{}'", _port_1)); + fmt::format("Unknown type for port \"{}\"", _port_1)); } } else if (_type == Type::port_destruction) { @@ -88,10 +88,10 @@ PatchageEvent::execute(Patchage* patchage) if (!port_1) { patchage->log().error( - fmt::format("Unable to find port `{}' to connect", _port_1)); + fmt::format("Unable to find port \"{}\" to connect", _port_1)); } else if (!port_2) { patchage->log().error( - fmt::format("Unable to find port `{}' to connect", _port_2)); + fmt::format("Unable to find port \"{}\" to connect", _port_2)); } else { patchage->canvas()->make_connection(port_1, port_2); } @@ -102,11 +102,11 @@ PatchageEvent::execute(Patchage* patchage) PatchagePort* port_2 = patchage->canvas()->find_port(_port_2); if (!port_1) { - patchage->log().error( - fmt::format("Unable to find port `{}' to disconnect", _port_1)); + patchage->log().error(fmt::format( + "Unable to find port \"{}\" to disconnect", _port_1)); } else if (!port_2) { - patchage->log().error( - fmt::format("Unable to find port `{}' to disconnect", _port_2)); + patchage->log().error(fmt::format( + "Unable to find port \"{}\" to disconnect", _port_2)); } else { patchage->canvas()->remove_edge_between(port_1, port_2); } |