Skip to content

Commit 6fb7755

Browse files
author
germanbisurgi
committed
Yii error
1 parent d77e1f5 commit 6fb7755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JsonEditorWidget.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public function run()
141141
try {
142142
$parsedValue = Json::decode($this->value);
143143
} catch (\Exception $e) {
144-
throw new \Exception($e->getMessage());
144+
$parsedValue = null;
145+
\Yii::error($e->getMessage(), __METHOD__);
145146
}
146147

147148
if (!empty($parsedValue)) {

0 commit comments

Comments
 (0)