]> git.lizzy.rs Git - rust.git/commitdiff
env: more precise error
authorRalf Jung <post@ralfj.de>
Fri, 27 Mar 2020 11:35:08 +0000 (12:35 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 11:35:08 +0000 (12:35 +0100)
src/shims/env.rs

index 7c126140491f3a3ce0762d783059784527bdb0dc..79c386e894ecb76be6ba0d8b587d657ae8b92cb7 100644 (file)
@@ -32,7 +32,7 @@ pub(crate) fn init<'mir>(
                     let var_ptr = match target_os {
                         "linux" | "macos" => alloc_env_var_as_c_str(name.as_ref(), value.as_ref(), ecx)?,
                         "windows" => alloc_env_var_as_wide_str(name.as_ref(), value.as_ref(), ecx)?,
-                        unsupported => throw_unsup_format!("OsString support for target OS `{}` not yet available", unsupported),
+                        unsupported => throw_unsup_format!("environment support for target OS `{}` not yet available", unsupported),
                     };
                     ecx.machine.env_vars.map.insert(OsString::from(name), var_ptr);
                 }