adding error object to the callback of angularExecuteThis