Browse Source

Better error output

tempestpy_adaptions
Matthias Volk 5 years ago
parent
commit
d05b132dde
  1. 2
      src/storm/storage/expressions/ToRationalFunctionVisitor.cpp

2
src/storm/storage/expressions/ToRationalFunctionVisitor.cpp

@ -54,7 +54,7 @@ namespace storm {
return firstOperandAsRationalFunction / secondOperandAsRationalFunction;
break;
case BinaryNumericalFunctionExpression::OperatorType::Power:
STORM_LOG_THROW(storm::utility::isInteger(secondOperandAsRationalFunction), storm::exceptions::InvalidArgumentException, "Exponent of power operator must be a positive integer.");
STORM_LOG_THROW(storm::utility::isInteger(secondOperandAsRationalFunction), storm::exceptions::InvalidArgumentException, "Exponent of power operator must be a positive integer but is " << secondOperandAsRationalFunction << ".");
exponentAsInteger = storm::utility::convertNumber<uint_fast64_t>(secondOperandAsRationalFunction);
return storm::utility::pow(firstOperandAsRationalFunction, exponentAsInteger);
break;

Loading…
Cancel
Save