Adds the error mode attribute setting code that was recently added in 1.1.