Skip to content

Commit 9d780f3

Browse files
committed
MAGETWO-62168: Improve field data converter logging and error reporting
1 parent 411464e commit 9d780f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/DB/DataConverter/SerializedToJson.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ protected function unserializeValue($value)
8484
throw new DataConversionException($errorString, $errorNumber);
8585
});
8686
$value = $this->serialize->unserialize($value);
87-
restore_error_handler();
8887
} catch (\Throwable $throwable) {
8988
throw new DataConversionException($throwable->getMessage());
89+
} finally {
90+
restore_error_handler();
9091
}
9192
return $value;
9293
}

0 commit comments

Comments
 (0)