mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24: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
|
||||
ECONNREFUSED: 'The service refused the connection - perhaps it is offline',
|
||||
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:
|
||||
'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:
|
||||
"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:
|
||||
'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',
|
||||
|
@ -21,8 +21,8 @@ const COMMON_ERRORS: IDataObject = {
|
|||
EHOSTUNREACH: 'The host is unreachable, 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',
|
||||
EISDIR: 'The file path expected but a given path is a directory',
|
||||
ENOTDIR: 'The directory path expected but a given path is a file',
|
||||
EISDIR: 'The file path was expected but the given path is a directory',
|
||||
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',
|
||||
EEXIST: 'The file or directory already exists',
|
||||
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');
|
||||
|
||||
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' });
|
||||
|
||||
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