diff --git a/node/forest_libp2p/bitswap/tests/go_compat.rs b/node/forest_libp2p/bitswap/tests/go_compat.rs index 16edfaeab672..e3754af0f94c 100644 --- a/node/forest_libp2p/bitswap/tests/go_compat.rs +++ b/node/forest_libp2p/bitswap/tests/go_compat.rs @@ -141,12 +141,14 @@ mod tests { } fn prepare_go_bitswap() -> Result<()> { + const ERROR_CONTEXT: &str = "Fail to compile `go-bitswap` test app, make sure you have `Go1.19.x` compiler installed and available in $PATH. For details refer to instructions at "; Command::new("go") .args(["mod", "vendor"]) .current_dir(GO_APP_DIR) - .spawn()? + .spawn() + .context(ERROR_CONTEXT)? .wait() - .context("Fail to compile `go-bitswap` test app, make sure you have `Go1.19.x` compiler installed and available in $PATH. For details refer to instructions at ")?; + .context(ERROR_CONTEXT)?; Ok(()) }