diff --git a/rts/motoko-rts/src/idl.rs b/rts/motoko-rts/src/idl.rs index 1f94fe8ab7e..096fc6b4545 100644 --- a/rts/motoko-rts/src/idl.rs +++ b/rts/motoko-rts/src/idl.rs @@ -100,7 +100,7 @@ unsafe fn parse_idl_header( main_types_out: *mut *mut u8, ) { if (*buf).ptr == (*buf).end { - idl_trap_with("empty input"); + idl_trap_with("empty input. Expected Candid-encoded argument, but received a zero-length argument"); } // Magic bytes (DIDL)