Skip to content

Commit 8160b97

Browse files
committed
test: fix tests errors on Linux
1 parent ec40e08 commit 8160b97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ fn main() {
206206

207207
if opt.global {
208208
if let Err(err) = globalenv::set_var(&opt.key, &opt.value) {
209-
error(&format!("can't globally set variable: {}", err), cli.exit_on_error);
209+
error(
210+
&format!(
211+
"can't globally set variable: {} (do you have the required permissions?)",
212+
err
213+
),
214+
cli.exit_on_error,
215+
);
210216
process::exit(1);
211217
}
212218
} else {

0 commit comments

Comments
 (0)