diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-11-24 16:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 16:55:10 +0100 |
commit | 1117d2db3965fc44f174be3fd029293b7e2b952e (patch) | |
tree | 3a50bffc376d1d86cfa09e726e500560f9f3c67c /cli/compat/errors.rs | |
parent | 1a51f2392db731fe0c1aa0ccd00da6769d254e66 (diff) |
compat: support compat mode in REPL (#12882)
This commit introduces "ProcState::maybe_resolver" field, which
stores a single instance of resolver for the whole lifetime of the
process, instead of creating these resolvers for each creation
of module graph. As a result, this resolver can be used in fallback
case where graph is not constructed (REPL, loading modules using
"require") unifying resolution logic.
Diffstat (limited to 'cli/compat/errors.rs')
-rw-r--r-- | cli/compat/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/compat/errors.rs b/cli/compat/errors.rs index 3a44b2c88..e9cc31a0d 100644 --- a/cli/compat/errors.rs +++ b/cli/compat/errors.rs @@ -49,7 +49,7 @@ pub(crate) fn err_module_not_found( typ: &str, ) -> AnyError { generic_error(format!( - "[ERR_MODULE_NOT_FOUND] Cannot find {} '{}' imported from {}", + "[ERR_MODULE_NOT_FOUND] Cannot find {} \"{}\" imported from \"{}\"", typ, path, base )) } |