Use appropriate error for debug