diff --git a/README.md b/README.md index adac9a2..360c5a3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This software is not sponsored or supported by Panic. ## Requirements - * The Playdate SDK installed in `$HOME/Developer/PlaydateSDK` on Linux or MacOS, `$HOME/Documents/PlaydateSDK` on Window, or at the path specified by the `$PLAYDATE_SDK` environment variable. + * The Playdate SDK installed in `$HOME/Developer/PlaydateSDK` on Linux or MacOS, `$HOME/Documents/PlaydateSDK` on Window, or at the path specified by the `$PLAYDATE_SDK_PATH` environment variable. * Rust, easiest installed via [rustup](https://rustup.rs). * Switch to the nightly toolchain using `rustup toolchain install nightly`, required for the `build-std` feature. * If you want to build for the Playdate device, you will need the `thumbv7em-none-eabihf` target. Added with `rustup +nightly target add thumbv7em-none-eabihf` diff --git a/src/main.rs b/src/main.rs index 94b3e0f..4734d08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,6 @@ use structopt::StructOpt; use zip::{write::FileOptions, CompressionMethod}; use zip_extensions::zip_create_from_directory_with_options; -#[cfg(unix)] use anyhow::Context; #[cfg(target_os = "linux")] @@ -378,7 +377,8 @@ impl Build { let status = cmd .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) - .status()?; + .status() + .with_context(|| format!("Command failed: {cmd:?}"))?; if !status.success() { bail!("pdc failed with error {:?}", status); }