aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/MathExecutor.php
diff options
context:
space:
mode:
authorBruce Wells <bruce.wells@simparel.com>2018-08-28 00:47:28 +0300
committerBruce Wells <bruce.wells@simparel.com>2018-08-28 00:47:28 +0300
commitaf2436d7cc555216526052b901583c0e75dddb24 (patch)
tree16ed1a23074c71517bffcd8b55692e9ee3dd900d /src/NXP/MathExecutor.php
parentb04cf54aa3e4d31bcea43011b371c75d168ac7f6 (diff)
Exception Messages
Basically the token that is causing the exception for better diagnostics.
Diffstat (limited to 'src/NXP/MathExecutor.php')
-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 f348355..02b034f 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 value must be a number");
+ throw new \Exception("Variable ({$variable}) value must be a number ({$value})");
}
$this->variables[$variable] = $value;