mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Fix typos in common error messages (no-changelog) (#9478)
This commit is contained in:
parent
9da93680c2
commit
7cb431f506
|
@ -9,11 +9,11 @@ const COMMON_ERRORS: IDataObject = {
|
||||||
// nodeJS errors
|
// nodeJS errors
|
||||||
ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
|
ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
|
||||||
ECONNRESET:
|
ECONNRESET:
|
||||||
'The connection to the server wes closed unexpectedly, perhaps it is offline. You can retry request immidiately or wait and retry later.',
|
'The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later.',
|
||||||
ENOTFOUND:
|
ENOTFOUND:
|
||||||
'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
|
'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
|
||||||
ETIMEDOUT:
|
ETIMEDOUT:
|
||||||
"The connection timed out, consider setting 'Retry on Fail' option in the node settings",
|
"The connection timed out, consider setting the 'Retry on Fail' option in the node settings",
|
||||||
ERRADDRINUSE:
|
ERRADDRINUSE:
|
||||||
'The port is already occupied by some other application, if possible change the port or kill the application that is using it',
|
'The port is already occupied by some other application, if possible change the port or kill the application that is using it',
|
||||||
EADDRNOTAVAIL: 'The address is not available, ensure that you have the right IP address',
|
EADDRNOTAVAIL: 'The address is not available, ensure that you have the right IP address',
|
||||||
|
@ -21,8 +21,8 @@ const COMMON_ERRORS: IDataObject = {
|
||||||
EHOSTUNREACH: 'The host is unreachable, perhaps the server is offline',
|
EHOSTUNREACH: 'The host is unreachable, perhaps the server is offline',
|
||||||
EAI_AGAIN: 'The DNS server returned an error, perhaps the server is offline',
|
EAI_AGAIN: 'The DNS server returned an error, perhaps the server is offline',
|
||||||
ENOENT: 'The file or directory does not exist',
|
ENOENT: 'The file or directory does not exist',
|
||||||
EISDIR: 'The file path expected but a given path is a directory',
|
EISDIR: 'The file path was expected but the given path is a directory',
|
||||||
ENOTDIR: 'The directory path expected but a given path is a file',
|
ENOTDIR: 'The directory path was expected but the given path is a file',
|
||||||
EACCES: 'Forbidden by access permissions, make sure you have the right permissions',
|
EACCES: 'Forbidden by access permissions, make sure you have the right permissions',
|
||||||
EEXIST: 'The file or directory already exists',
|
EEXIST: 'The file or directory already exists',
|
||||||
EPERM: 'Operation not permitted, make sure you have the right permissions',
|
EPERM: 'Operation not permitted, make sure you have the right permissions',
|
||||||
|
|
|
@ -81,7 +81,7 @@ describe('NodeErrors tests', () => {
|
||||||
const nodeOperationError = new NodeOperationError(node, 'ENOTFOUND test error message');
|
const nodeOperationError = new NodeOperationError(node, 'ENOTFOUND test error message');
|
||||||
|
|
||||||
expect(nodeOperationError.message).toEqual(
|
expect(nodeOperationError.message).toEqual(
|
||||||
'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
|
'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ describe('NodeErrors tests', () => {
|
||||||
const nodeApiError = new NodeApiError(node, { message: 'ENOTFOUND test error message' });
|
const nodeApiError = new NodeApiError(node, { message: 'ENOTFOUND test error message' });
|
||||||
|
|
||||||
expect(nodeApiError.message).toEqual(
|
expect(nodeApiError.message).toEqual(
|
||||||
'The connection cannot be established, this usually occurs due to an incorrect host(domain) value',
|
'The connection cannot be established, this usually occurs due to an incorrect host (domain) value',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue