diff options
author | Bruce Wells <bruce.wells@simparel.com> | 2018-09-06 01:17:05 +0300 |
---|---|---|
committer | Bruce Wells <bruce.wells@simparel.com> | 2018-09-06 01:17:05 +0300 |
commit | 7db873a63655258bd30ff2d83f186da48f2c50e1 (patch) | |
tree | d7080eefe3251409d3e4c7dceddf7c3f3738913d /src/NXP/MathExecutor.php | |
parent | af2436d7cc555216526052b901583c0e75dddb24 (diff) |
Added variable type to diagnostic message
Diffstat (limited to 'src/NXP/MathExecutor.php')
-rw-r--r-- | src/NXP/MathExecutor.php | 2 |
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; |