Comments (2)
Okay so my issue is kind of an XY type: I want to make sure that the database is unlocked when I retrieve passwords from within isync I use for my email, so my sync script would need to detect that the failure was caused by the fact that no database is unlocked, and that would enable it to not start isync in the first place (I dont want it to run with locked database because it wastes resources and creates a pop up for each failed login, prompting me to type in the password).
In the end I worked around this issue by creating a test entry that is guaranteed to be available, so if that request fails, my script knows that the database is locked and it does not invoke isync.
I know, if it really is that bad to implement, I think we might consider this issue a 'nice to have' and focus on other matters (close this issue if you think alike), but if you find a good opportunity to implement different error codes, I would be happy to avoid that dirty hack ;)
Anyhow, thanks for considering my request and have a nice day :)
from git-credential-keepassxc.
It's actually not that easy... I use https://github.com/dtolnay/anyhow for error handling which is specifically designed for use cases such as CLI tools, where you don't care about what went wrong, just care about whether it went wrong.
Is there a particular use case you can't work around without this atm? Or is this more of a 'nice to have' you have in mind?
from git-credential-keepassxc.
Related Issues (20)
- Prompt to use Yubikey? HOT 3
- `dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib` on macbook M1 HOT 1
- to add some docs for `git-credential-keepassxc get` command for non git use cases
- Support for error codes
- Existing credentials used/updated! HOT 9
- Offer credentials from `Git` group only (CLI flag & automatically)
- KeePassXC update 2.7.2/2.7.3 breaks connection to Unix socket HOT 1
- Exit code of `ERRO ... is not allowed to call git-credential-keepassxc` is `0` HOT 2
- Notifications configurable via config file HOT 2
- Allow `get` to optionally receive one argument, and print only that field HOT 2
- [AUR package] shell is not allowed to call git-credential-keepassxc HOT 7
- What is the expected behavior when computer has multiple YubiKeys? HOT 3
- Filter by username to return nothing when no match HOT 2
- Readme unclear HOT 3
- Trouble Retrieving Password From Shell HOT 1
- Add support for git 2.41 HOT 2
- zsh is not allowed to call git-credential-keepassxc HOT 1
- Failed to locate socket, Caused by: N/A HOT 1
- Failed to connect to Unix socket HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-credential-keepassxc.