overrode phantom error handler for custom error printing