better error message, ref #9