Error handler for prefix loader