aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Wells <bruce.wells@simparel.com>2018-09-06 01:17:05 +0300
committerBruce Wells <bruce.wells@simparel.com>2018-09-06 01:17:05 +0300
commit7db873a63655258bd30ff2d83f186da48f2c50e1 (patch)
treed7080eefe3251409d3e4c7dceddf7c3f3738913d /src
parentaf2436d7cc555216526052b901583c0e75dddb24 (diff)
Added variable type to diagnostic message
Diffstat (limited to 'src')
-rw-r--r--src/NXP/MathExecutor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NXP/MathExecutor.php b/src/NXP/MathExecutor.php
index 02b034f..80f0bde 100644
--- a/src/NXP/MathExecutor.php
+++ b/src/NXP/MathExecutor.php
@@ -92,7 +92,7 @@ class MathExecutor
public function setVar($variable, $value)
{
if (!is_numeric($value)) {
- throw new \Exception("Variable ({$variable}) value must be a number ({$value})");
+ throw new \Exception("Variable ({$variable}) value must be a number ({$value}) type ({gettype($value)})");
}
$this->variables[$variable] = $value;