From 65dc304c1789112d4b63c210a903eff4a6efb1ce Mon Sep 17 00:00:00 2001 From: Joachim Klein Date: Fri, 23 Jun 2017 09:16:17 +0000 Subject: [PATCH] Property.checkAgainstExpectedResultString: improve error message if there is an unexpected result type git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11993 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism/src/parser/ast/Property.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism/src/parser/ast/Property.java b/prism/src/parser/ast/Property.java index 045cb1e0..fbebf072 100644 --- a/prism/src/parser/ast/Property.java +++ b/prism/src/parser/ast/Property.java @@ -403,7 +403,7 @@ public class Property extends ASTElement } // Parse actual result if (!(result instanceof Double)) - throw new PrismException("Result is wrong type for (double-valued) property"); + throw new PrismException("Result is wrong type (" + result.getClass() + ") for (double-valued) property"); double doubleRes = ((Double) result).doubleValue(); // Compare results if (Double.isNaN(doubleRes)) {