fix: an Immich error leaves out Node's advice, a locked save looks locked

A connection test against a server with a self-signed certificate ended in
"fetch failed (self-signed certificate; if the root CA is installed
locally, try running Node.js with --use-system-ca)". The advice is meant
for whoever runs the server and cannot be acted on from the settings card,
so it is cut off.

The save button of a collection place stays locked while the price cannot
be read, but looked and pointed like an active one. It is dimmed and shows
the not-allowed cursor now.
This commit is contained in:
Maurice
2026-09-23 18:03:58 +02:00
parent a910c2a837
commit f16698bdb1
3 changed files with 13 additions and 1 deletions
@@ -175,4 +175,9 @@ describe('describeFetchFailure', () => {
it('MEM-FETCH-005: a rejection that is not an Error falls back to the old wording', () => {
expect(describeFetchFailure('boom')).toBe('Connection failed');
});
it('MEM-FETCH-006: leaves out the advice Node adds for whoever runs the server', () => {
const cause = new Error('self-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca');
expect(describeFetchFailure(new TypeError('fetch failed', { cause }))).toBe('fetch failed (self-signed certificate)');
});
});