Skip to content

A free open source IT asset/license management system

rm ->getMessage(), report full exception

spencerrlongg135118de65a1
diff --git a/app/Rules/NumericEncrypted.php b/app/Rules/NumericEncrypted.php
index ff551e0322..ae6420b79e 100644
--- a/app/Rules/NumericEncrypted.php
+++ b/app/Rules/NumericEncrypted.php
@@ -27,7 +27,7 @@ class NumericEncrypted implements ValidationRule
$fail(trans('validation.numeric', ['attribute' => $attributeName]));
}
} catch (\Exception $e) {
- report($e->getMessage());
+ report($e);
$fail(trans('general.something_went_wrong'));
}
}
diff --git a/app/Rules/RegexEncrypted.php b/app/Rules/RegexEncrypted.php
index 9a573f4b53..db72cafa11 100644
--- a/app/Rules/RegexEncrypted.php
+++ b/app/Rules/RegexEncrypted.php
@@ -29,7 +29,7 @@ class RegexEncrypted implements ValidationRule
$fail(trans('validation.regex', ['attribute' => $attributeName]));
}
} catch (\Exception $e) {
- report($e->getMessage());
+ report($e);
$fail(trans('general.something_went_wrong'));
}
}