mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Disable printing "local package ... not found" in release mode
This commit is contained in:
@@ -237,7 +237,11 @@ fn wasmer_main_inner() -> Result<(), anyhow::Error> {
|
||||
|
||||
// Check if the file is a package name
|
||||
if let WasmerCLIOptions::Run(r) = &options {
|
||||
return crate::commands::try_run_package_or_file(&args, r);
|
||||
#[cfg(not(feature = "debug"))]
|
||||
let debug = false;
|
||||
#[cfg(feature = "debug")]
|
||||
let debug = r.options.debug;
|
||||
return crate::commands::try_run_package_or_file(&args, r, debug);
|
||||
}
|
||||
|
||||
options.execute()
|
||||
|
||||
Reference in New Issue
Block a user