Improve error messages for shouldMatchList

Also these 4 functions look a bit repetitive