Improve "Could not resolve type with token" exception message