Skip to content

Commit b1238ab

Browse files
dannasmanyouknowone
authored andcommitted
change import_encodings error message
1 parent d5a6284 commit b1238ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/vm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl VirtualMachine {
224224
fn import_encodings(&mut self) -> PyResult<()> {
225225
self.import("encodings", None, 0).map_err(|import_err| {
226226
let err = self.new_runtime_error(
227-
"Could not import encodings. Is your RUSTPYTHONPATH set? If you don't have \
227+
"Could not import encodings. Is your RUSTPYTHONPATH set? You can also try adding your path to Setting struct's field path_list. If you don't have \
228228
access to a consistent external environment (e.g. if you're embedding \
229229
rustpython in another application), try enabling the freeze-stdlib feature"
230230
.to_owned(),

0 commit comments

Comments
 (0)