Comments (5)
yes, you are right. attic tries to have less tracebacks and more pretty error msgs, but sometimes it also hides useful information due to that.
In borg, I switched that to have more tracebacks and less prettyness, to be able to find issues using the tracebacks.
from borg.
how about this being a function of -v
? or maybe a --debug
flag specifically for tracebacks or hooking in a debugger?
see also #74.
from borg.
@anarcat no, I don't think that is an option. You can not always know in advance that a traceback will happen, it might happen only once or only rarely and we need those tracebacks to fix any such issue.
But we need to differently handle such exceptions than rather "normal" error conditions, like an already existing archive name. In the latter case, the user should see a normal error message, not a traceback.
from borg.
true. then we could have two classes of exceptions: warnings and errors, maybe? the latter being the only one triggering an exception...
from borg.
I almost changed the Error class to be able to return different exit_codes (or having a Warning class also).
But then I found that if such an exception reaches the toplevel error handler (and exits with that error code), it is always an error in the sense of abrupt termination, not reaching the normal operation end.
from borg.
Related Issues (20)
- locking related KeyError exception on every command HOT 8
- macOS passcommand syntax issue (base64 command) HOT 5
- 'borg create' stops when encountering invalid characters in filenames HOT 3
- cache_sync parse error: Unexpected object: integer HOT 6
- openindiana: non-existing runtime dir HOT 2
- [Question] Fixable data integrity errors? HOT 7
- Canonical path: resolve symbolic links? HOT 2
- Data integrity error: Segment entry data short read [segment 2, offset 36478608]: expected 676, got 359 bytes HOT 1
- Static binary for OpenBSD/NetBSD missing HOT 3
- Move path within repo HOT 2
- [1.2.7] borg check -repair lacks a summarizing information at the end when it actually repaired something(s)
- "compromised client" threat model HOT 1
- Backup to Hetzner Storage Share no longer working HOT 1
- moin 1.4: borg install docs, cygwin section refer to py38
- borg2: Creating archive fails at specific archive name HOT 3
- disk is full: `_get_default_tempdir` raises `FileNotFoundError` No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/kmille'] HOT 7
- run in venv w/ root rights HOT 3
- As of 1.2.0, the ssh relative path hack "/./" works for most actions but not "borg init" HOT 4
- Please add a way to keep backups independently of pruning retention policy HOT 2
- ConnectionResetError: [Errno 104] Connection reset by peer HOT 3
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 borg.