Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Sep 28, 2021
1 parent 421b474 commit 86ea39c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sdk/cargo-build-bpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,12 @@ fn build_bpf_package(config: &Config, target_directory: &Path, package: &cargo_m
let dump_script = config.bpf_sdk.join("scripts").join("dump.sh");
#[cfg(windows)]
{
println!("Dumping program is not supported from `build-bpf` on Windows, and must be done separately.");
println!("Please run \"{} {} {}\" from a Bash-supporting shell, then re-run this command.", &dump_script.display(), &program_unstripped_so.display(), &program_dump.display());
eprintln!("Using Bash scripts from within a program is not supported on Windows, skipping `--dump`.");
eprintln!(
"Please run \"{} {} {}\" from a Bash-supporting shell, then re-run this command to see the processed program dump.",
&dump_script.display(),
&program_unstripped_so.display(),
&program_dump.display());
}
#[cfg(not(windows))]
{
Expand Down

0 comments on commit 86ea39c

Please sign in to comment.