Skip to content

Commit

Permalink
ignore unsupported kernel flags
Browse files Browse the repository at this point in the history
A kernel panic is too hard. A warning is enough to inform the user.
  • Loading branch information
stlankes committed Mar 7, 2024
1 parent af5deff commit 0ae2c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Default for Cli {
}
"--" => args.extend(&mut words),
_ if image_path.is_none() => image_path = Some(word),
word => panic!(
word => warn!(
"Found argument '{word}' which wasn't expected, or isn't valid in this context
If you tried to supply `{word}` as a value rather than a flag, use `-- {word}`"
Expand Down

0 comments on commit 0ae2c4c

Please sign in to comment.