stop error being logged to console