diff options
author | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
commit | 1b8f06504a155e75a9419dfa5c9bf9df1866e01d (patch) | |
tree | 8e9ce0ddaee84c76af66b2fa58cd41f73d8434eb /src/libs/engine/events | |
parent | a7e39b85d7c35ec44c613e593c57ff27de0d06bc (diff) | |
download | ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.gz ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.bz2 ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.zip |
Factor out destroy (and object_destroyed) to common interface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1443 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r-- | src/libs/engine/events/SetMetadataEvent.cpp | 3 | ||||
-rw-r--r-- | src/libs/engine/events/SetPolyphonicEvent.cpp | 2 |
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"); } } |