Some status output (e.g. "Not logged in") goes to stderr. Capture both stdout and stderr, including when the command exits non-zero, so the diagnostic surfaces the full picture.
Some status output (e.g. "Not logged in") goes to stderr. Capture both stdout and stderr, including when the command exits non-zero, so the diagnostic surfaces the full picture.