added extra info to error message for #999