Error message

Add error callback to print error message to console.