[ty] Improve debug messages when imports fail (#21555)
This commit is contained in:
@@ -40,6 +40,8 @@ error[unresolved-import]: Cannot resolve imported module `....foo`
|
||||
2 |
|
||||
3 | stat = add(10, 15)
|
||||
|
|
||||
help: The module can be resolved if the number of leading dots is reduced
|
||||
help: Did you mean `...foo`?
|
||||
info: Searched in the following paths during module resolution:
|
||||
info: 1. /src (first-party code)
|
||||
info: 2. vendored://stdlib (stdlib typeshed stubs vendored by ty)
|
||||
|
||||
Reference in New Issue
Block a user