aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/MathExecutor.php
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2018-09-06 20:37:48 +0300
committerGitHub <noreply@github.com>2018-09-06 20:37:48 +0300
commita969571772a9761f67672b229741f209f5391560 (patch)
treed7080eefe3251409d3e4c7dceddf7c3f3738913d /src/NXP/MathExecutor.php
parentb04cf54aa3e4d31bcea43011b371c75d168ac7f6 (diff)
parent7db873a63655258bd30ff2d83f186da48f2c50e1 (diff)
Merge pull request #25 from phpfui/Exception_messages
Exception Messages
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..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 value must be a number");
+ throw new \Exception("Variable ({$variable}) value must be a number ({$value}) type ({gettype($value)})");
}
$this->variables[$variable] = $value;