diff --git a/src/atomic-xr/_debug.nu b/src/atomic-xr/_debug.nu index 7bfc1ba..d2fcd0a 100644 --- a/src/atomic-xr/_debug.nu +++ b/src/atomic-xr/_debug.nu @@ -9,7 +9,13 @@ export def main [ ] { let output = $output | default (mktemp -t --suffix .msgpackz) | path expand log info "This function produces a brotli-compressed msgpack debug file. It can be useful to provide more context for hard-to-debug issues" - log info $"If you'd like to check what information it contains, use `nu -c 'open ($output) | from msgpackz | explore'`" + + if $base64 { + log info $"If you'd like to check what information it contains, use `nu -c '{base64} | decode base64 | from msgpackz'`" + } else { + log info $"If you'd like to check what information it contains, use `nu -c 'open ($output) | from msgpackz'`" + } + log info "" log info "Creating debug file..."