Added assertion error message for test_make_line

Refs #23842. Thanks Thomas Chaumeny for the suggestion.