Skip to content

Commit

Permalink
Let JavaTranslator.translateObject() throw clearer ISE
Browse files Browse the repository at this point in the history
Wrap the full original exception, because its message might be enough to pinpoint the issue.
  • Loading branch information
metawilm-aws authored and spmallette committed Dec 6, 2023
1 parent 1e0cfae commit 500252d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
[[release-3-6-7]]
=== TinkerPop 3.6.7 (NOT OFFICIALLY RELEASED YET)
* Improved error message from `JavaTranslator` by including exception source.
[[release-3-6-6]]
=== TinkerPop 3.6.6 (November 20, 2023)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ else if (object instanceof Bytecode) {
}
return traversal;
} catch (final Throwable e) {
throw new IllegalStateException(e.getMessage());
throw new IllegalStateException(e.getMessage(), e);
}
} else if (object instanceof TraversalStrategyProxy) {
final Map<String, Object> map = new HashMap<>();
Expand Down

0 comments on commit 500252d

Please sign in to comment.