Console log change to error