Improve disabled properties on edges error message

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2596
This commit is contained in:
Matej Ferencevic 2019-12-10 10:25:14 +01:00
parent 5fa6974919
commit b894f80de4
2 changed files with 5 additions and 4 deletions

View File

@ -87,7 +87,7 @@ void PropsSetChecked(TRecordAccessor *record, const storage::Property &key,
"Trying to set properties on a deleted object.");
case storage::Error::PROPERTIES_DISABLED:
throw QueryRuntimeException(
"Can't set property because properties are disabled.");
"Can't set property because properties on edges are disabled.");
case storage::Error::VERTEX_HAS_EDGES:
case storage::Error::NONEXISTENT_OBJECT:
throw QueryRuntimeException(

View File

@ -2113,7 +2113,7 @@ void SetPropertiesOnRecord(DbAccessor *dba, TRecordAccessor *record,
"Can't serialize due to concurrent operations.");
case storage::Error::PROPERTIES_DISABLED:
throw QueryRuntimeException(
"Can't set property because properties are disabled.");
"Can't set property because properties on edges are disabled.");
case storage::Error::VERTEX_HAS_EDGES:
case storage::Error::NONEXISTENT_OBJECT:
throw QueryRuntimeException(
@ -2155,7 +2155,7 @@ void SetPropertiesOnRecord(DbAccessor *dba, TRecordAccessor *record,
"Can't serialize due to concurrent operations.");
case storage::Error::PROPERTIES_DISABLED:
throw QueryRuntimeException(
"Can't set property because properties are disabled.");
"Can't set property because properties on edges are disabled.");
case storage::Error::VERTEX_HAS_EDGES:
case storage::Error::NONEXISTENT_OBJECT:
throw QueryRuntimeException(
@ -2322,7 +2322,8 @@ bool RemoveProperty::RemovePropertyCursor::Pull(Frame &frame,
"Can't serialize due to concurrent operations.");
case storage::Error::PROPERTIES_DISABLED:
throw QueryRuntimeException(
"Can't remove property because properties are disabled.");
"Can't remove property because properties on edges are "
"disabled.");
case storage::Error::VERTEX_HAS_EDGES:
case storage::Error::NONEXISTENT_OBJECT:
throw QueryRuntimeException(