[jerry] modify the error variable