added update error console.log