Use old error handling code to provide some compatibility