forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make stack traces work with cached top level values (digital-asset#2560)
* Make stack traces work with cached top level values For stack traces to work properly in the presence of cached top level values, we need to cache the stack trace together with the value and restore the stack trace when we get the value from the cache. We also need to push location information under the monadic. Otherwise, the location information will be removed from the continuation stack before the monadic action is _executed_. We also change one test case to use `fail` instead of `error` since `fail` is more tricky than `error` (due to the lazy expression embedding in DAML-LF). Unfortunately, the test did not work woth `fail` in the past because of the issues fixed in this PR. * Explain special cases when pushing location information
- Loading branch information
1 parent
8828ff7
commit 0a82d9f
Showing
3 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters