#2667·gopass

Error: failed to retrieve secret "whatever": entry is not in the password store -> Sould be stderr not stdout

Author: shemeshgCreated Sep 13, 2023Updated Sep 12, 2026
Labelsbug

Summary

when gopass show item not with exact name, the output goes to stderr and the error to stdout

Steps To Reproduce

bash
macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simple.md"|cat
# Improvements
macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simp"|cat

Error: failed to retrieve secret "FAST/2.notes/improvements pass-simp": entry is not in the password store
macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simp"
⚠ Entry "FAST/2.notes/improvements pass-simp" not found. Starting search...
✅ Found exact match in "FAST/2.notes/improvements pass-simple.md"
Secret: FAST/2.notes/improvements pass-simple.md

# Improvements

macos@macoss-Mac-mini ~ %

Expected behavior

The stdout should contain the entry content, and stderr all the rest, same as searching successfully with

exact name

Environment

  • OS: [e.g. Mac OS X High Sierra, Ubuntu 18.04, Windows 10, ...]
  • OS version: [uname -a]
macos@macoss-Mac-mini ~ % uname -a
Darwin macoss-Mac-mini.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64
macos@macoss-Mac-mini ~ %
  • gopass Version: [gopass version]
macos@macoss-Mac-mini ~ % gopass version
gopass 1.15.8 go1.21.1 darwin amd64
macos@macoss-Mac-mini ~ %
  • Installation method: [e.g. from source, brew, gopass repo]
bash
brew install gopass

Additional context

N/A