Send error to callback rather than just printing a message on the console.