mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
@@ -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)');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user