Prevent error property from being tampered with