Skip to content

Commit 07f7083

Browse files
authored
env: more precise error
1 parent 813d76d commit 07f7083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl<'tcx> EnvVars<'tcx> {
3232
let var_ptr = match target_os {
3333
"linux" | "macos" => alloc_env_var_as_c_str(name.as_ref(), value.as_ref(), ecx)?,
3434
"windows" => alloc_env_var_as_wide_str(name.as_ref(), value.as_ref(), ecx)?,
35-
unsupported => throw_unsup_format!("OsString support for target OS `{}` not yet available", unsupported),
35+
unsupported => throw_unsup_format!("environment support for target OS `{}` not yet available", unsupported),
3636
};
3737
ecx.machine.env_vars.map.insert(OsString::from(name), var_ptr);
3838
}

0 commit comments

Comments
 (0)