daml/compiler/scenario-service
Moritz Kiefer 19dd7ed7c4 Handle unserializable scenario result types (#4156)
* Handle unserializable scenario result types

Previously, the conversions made some attempt at guarding against this
by matching on SPap and PClosure. While it would be possible to extend
this to match on STypeRep, this doesn’t actually fix the issue since
this can be nested, e.g., you can have a record with a field that is
an SPAP.

This PR changes this to simply catch any errors thrown from
`toValue`. While this feels a bit ugly, I think it’s a reasonable fix
for now.

changelog_begin

- [DAML Studio] Scenarios with unserializable result types no longer
  crash the scenario service.

changelog_end

* Only run test on DAML-LF >= 1.7
2020-01-22 11:15:46 +00:00
..
client update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
protos update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
server Handle unserializable scenario result types (#4156) 2020-01-22 11:15:46 +00:00