better error messages for globbing

some more asserts should be made more meaningful, here is a start :)