From e9c04b22608d8a18ca36419d81a08f757df6aead Mon Sep 17 00:00:00 2001 From: Eric Swanson Date: Thu, 6 Jun 2024 11:13:13 -0700 Subject: [PATCH] fix: denote GetWasmMemoryLimitFailed error source --- src/dfx-core/src/error/dfx_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dfx-core/src/error/dfx_config.rs b/src/dfx-core/src/error/dfx_config.rs index c52158065b..184dfa0e01 100644 --- a/src/dfx-core/src/error/dfx_config.rs +++ b/src/dfx-core/src/error/dfx_config.rs @@ -54,8 +54,8 @@ pub enum GetMemoryAllocationError { #[derive(Error, Debug)] pub enum GetWasmMemoryLimitError { - #[error("Failed to get Wasm memory limit for canister '{0}': {1}")] - GetWasmMemoryLimitFailed(String, GetCanisterConfigError), + #[error("Failed to get Wasm memory limit for canister '{0}'")] + GetWasmMemoryLimitFailed(String, #[source] GetCanisterConfigError), } #[derive(Error, Debug)]