Add objectType to errors