diff options
author | David Robillard <d@drobilla.net> | 2009-12-30 15:46:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-12-30 15:46:35 +0000 |
commit | 87be66d677b1947ef1b5f866c44b0beb1263ac17 (patch) | |
tree | a8269bb2343bbc32a2e129e983d0e26301f6608f /src/engine/events/SetMetadata.hpp | |
parent | 75527443361902ff924ddd01755b9268fcb97b2b (diff) | |
download | ingen-87be66d677b1947ef1b5f866c44b0beb1263ac17.tar.gz ingen-87be66d677b1947ef1b5f866c44b0beb1263ac17.tar.bz2 ingen-87be66d677b1947ef1b5f866c44b0beb1263ac17.zip |
Better error reporting for bad PUT.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2323 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events/SetMetadata.hpp')
-rw-r--r-- | src/engine/events/SetMetadata.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/engine/events/SetMetadata.hpp b/src/engine/events/SetMetadata.hpp index cf33b5aa..dc67d162 100644 --- a/src/engine/events/SetMetadata.hpp +++ b/src/engine/events/SetMetadata.hpp @@ -82,7 +82,13 @@ public: void post_process(); private: - enum { NO_ERROR, NOT_FOUND, INTERNAL, BAD_TYPE } _error; + enum { NO_ERROR, + NOT_FOUND, + INTERNAL, + BAD_OBJECT_TYPE, + BAD_VALUE_TYPE + } _error; + enum SpecialType { NONE, ENABLE, @@ -101,6 +107,7 @@ private: Shared::ResourceImpl* _object; PatchImpl* _patch; CompiledPatch* _compiled_patch; + std::string _error_predicate; bool _replace; bool _is_meta; bool _success; |