diff options
author | David Robillard <d@drobilla.net> | 2012-07-26 15:27:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-07-26 15:27:03 +0000 |
commit | 3c5931bb13b5f88edcebb375fa6964dde8b85563 (patch) | |
tree | 9801897576b7fb9d8a9f700847c670f216fc93b7 /src/server/events/CreatePatch.cpp | |
parent | b83ed4f83cf4c9b5054dcf55bea710313c369633 (diff) | |
download | ingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.tar.gz ingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.tar.bz2 ingen-3c5931bb13b5f88edcebb375fa6964dde8b85563.zip |
Report subject with errors to client for more meaningful error messages.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4556 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/CreatePatch.cpp')
-rw-r--r-- | src/server/events/CreatePatch.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/events/CreatePatch.cpp b/src/server/events/CreatePatch.cpp index b6b62f71..602fe2a4 100644 --- a/src/server/events/CreatePatch.cpp +++ b/src/server/events/CreatePatch.cpp @@ -48,14 +48,14 @@ bool CreatePatch::pre_process() { if (_path.is_root() || _engine.engine_store()->find_object(_path) != NULL) { - return Event::pre_process_done(EXISTS); + return Event::pre_process_done(EXISTS, _path); } const Raul::Path& path = (const Raul::Path&)_path; _parent = _engine.engine_store()->find_patch(path.parent()); if (!_parent) { - return Event::pre_process_done(PARENT_NOT_FOUND); + return Event::pre_process_done(PARENT_NOT_FOUND, path.parent()); } const Ingen::Shared::URIs& uris = _engine.world()->uris(); @@ -70,7 +70,7 @@ CreatePatch::pre_process() } if (int_poly < 1) { - return Event::pre_process_done(INVALID_POLY); + return Event::pre_process_done(INVALID_POLY, path); } if (int_poly == _parent->internal_poly()) { @@ -114,8 +114,7 @@ CreatePatch::execute(ProcessContext& context) void CreatePatch::post_process() { - respond(_status); - if (!_status) { + if (!respond()) { _engine.broadcaster()->put(_path, _update); } } |