change errors to use "object" instead of "obj".