summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/SetMetadataEvent.cpp3
-rw-r--r--src/libs/engine/events/SetPolyphonicEvent.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/engine/events/SetMetadataEvent.cpp b/src/libs/engine/events/SetMetadataEvent.cpp
index 6e72d57b..db4bbc30 100644
--- a/src/libs/engine/events/SetMetadataEvent.cpp
+++ b/src/libs/engine/events/SetMetadataEvent.cpp
@@ -99,8 +99,7 @@ SetMetadataEvent::post_process()
if (_error == INVALID_PATH) {
_responder->respond_error((boost::format("Invalid path %1% setting %2%") % _path % _key).str());
} else if (_object == NULL) {
- string msg = "Unable to find object ";
- msg += _path;
+ string msg = (boost::format("Unable to find object %1% to set %2%") % _path % _key).str();
_responder->respond_error(msg);
} else {
_responder->respond_ok();
diff --git a/src/libs/engine/events/SetPolyphonicEvent.cpp b/src/libs/engine/events/SetPolyphonicEvent.cpp
index 9b7fd980..d1fc6a7c 100644
--- a/src/libs/engine/events/SetPolyphonicEvent.cpp
+++ b/src/libs/engine/events/SetPolyphonicEvent.cpp
@@ -73,7 +73,7 @@ SetPolyphonicEvent::post_process()
_responder->respond_error("Unable to set object as polyphonic");
}
} else {
- _responder->respond_error("Unable to find object");
+ _responder->respond_error("Unable to find object to set polyphonic");
}
}