Removed bogus console.log
Added detect error in api responce