diff options
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 148466e..070ef8c 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -14,11 +14,12 @@ * along with Patchage. If not, see <http://www.gnu.org/licenses/>. */ -#include "patchage-config.h" +#include <boost/format.hpp> -#include "raul/log.hpp" #include "raul/SharedPtr.hpp" +#include "patchage-config.h" + #if defined(HAVE_JACK_DBUS) #include "JackDbusDriver.hpp" #elif defined(PATCHAGE_LIBJACK) @@ -34,6 +35,7 @@ #include "PatchagePort.hpp" using std::string; +using boost::format; PatchageCanvas::PatchageCanvas(Patchage* app, int width, int height) : FlowCanvas::Canvas(width, height) @@ -113,7 +115,8 @@ PatchageCanvas::remove_port(const PortID& id) { PatchagePort* const port = find_port(id); if (!port) { - Raul::error << "Failed to find port " << id << " to remove" << std::endl; + _app->error_msg((format("Failed to find port with ID `%1' to remove.") + % id).str()); } _port_index.erase(id); |