Skip to content

Commit

Permalink
Add exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jun 13, 2022
1 parent 9b7cc00 commit 9c775b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ISerializedGremlinQuery Serialize(IGremlinQueryBase query)
if (serialized is ISerializedGremlinQuery serializedQuery)
return serializedQuery;

throw new InvalidOperationException();//TODO: Message
throw new InvalidOperationException($"Unable to serialize a query of type {query.GetType().FullName}.");
}

public IGremlinQuerySerializer ConfigureFragmentSerializer(Func<IGremlinQueryFragmentSerializer, IGremlinQueryFragmentSerializer> transformation)
Expand Down

0 comments on commit 9c775b3

Please sign in to comment.