Prior to this patch, two distinct failure cases would produce the same generic error message. Refactor the test logic to report the specific condition which trigger failure.