fix: log append reports an unreadable --body-file as ERROR, not a traceback (#145)
CI / verify (push) Successful in 1m10s
Release / release (push) Successful in 35s

Files changed:
- CHANGES.md
- VERSION
- tools/CONTRACT.md
- tools/chemenu/commands/log_append.py
- tools/chemenu/tests/test_log_append.py
This commit is contained in:
torben committed 2026-09-26 16:03:44 +02:00
1 parent 685fc2e15e
commit a70d904274
5 files changed
+83 -6

No files matched your search

+2 -2
View File
@@ -999,12 +999,12 @@ Append a formatted entry to `kb/log.md`.
- 0 success
- 1 `--op` is not one of ingest, query, lint, create, update, delete, rename, move
- 1 `--body-file` cannot be read
- 1 `--body-file` is missing, not a readable file, or not valid UTF-8
**ON FAILURE**
- `--op` is not one of ingest, query, lint, create, update, delete, rename, move -> Nothing was written - fix the argument and retry once
- `--body-file` cannot be read -> Nothing was written - fix the path and retry once
- `--body-file` is missing, not a readable file, or not valid UTF-8 -> Nothing was written - fix the path and retry once
**NEVER**