Skip to content

Commit faf261a

Browse files
laky241kodiakhq[bot]ggazzod-gubertdougfabris
authored
chore: fix correct spelling of 'occurred' in error messages (#38436)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz> Co-authored-by: Douglas Gubert <douglas.gubert@gmail.com> Co-authored-by: Douglas Fabris <devfabris@gmail.com>
1 parent 305a242 commit faf261a

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/meteor/app/meteor-accounts-saml/server/lib/SAML.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const showErrorMessage = function (res: ServerResponse, err: string): void {
2525
res.writeHead(200, {
2626
'Content-Type': 'text/html',
2727
});
28-
const content = `<html><body><h2>Sorry, an annoying error occured</h2><div>${escapeHTML(err)}</div></body></html>`;
28+
const content = `<html><body><h2>Sorry, an annoying error occurred</h2><div>${escapeHTML(err)}</div></body></html>`;
2929
res.end(content, 'utf-8');
3030
};
3131

ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class IncomingSipCall extends BaseSipCall {
175175

176176
logger.debug({ msg: 'modify', method: 'IncomingSipCall.createDialog', req: this.session.stripDrachtioServerDetails(req) });
177177
} catch (err) {
178-
logger.error({ msg: 'An unexpected error occured while processing a modify event on an IncomingSipCall dialog', err });
178+
logger.error({ msg: 'An unexpected error occurred while processing a modify event on an IncomingSipCall dialog', err });
179179

180180
try {
181181
res.send(SipErrorCodes.INTERNAL_SERVER_ERROR);

ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class OutgoingSipCall extends BaseSipCall {
245245

246246
logger.debug({ msg: 'modify', method: 'OutgoingSipCall.createDialog', req: this.session.stripDrachtioServerDetails(req) });
247247
} catch (err) {
248-
logger.error({ msg: 'An unexpected error occured while processing a modify event on an OutgoingSipCall dialog', err });
248+
logger.error({ msg: 'An unexpected error occurred while processing a modify event on an OutgoingSipCall dialog', err });
249249

250250
try {
251251
res.send(SipErrorCodes.INTERNAL_SERVER_ERROR);

packages/apps-engine/src/server/AppManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class AppManager {
321321

322322
if (AppStatusUtils.isDisabled(await rl.getStatus())) {
323323
// Usually if an App is disabled before it's initialized,
324-
// then something (such as an error) occured while
324+
// then something (such as an error) occurred while
325325
// it was compiled or something similar.
326326
// We still have to validate its license, though
327327
await rl.validateLicense();

packages/apps-engine/src/server/errors/CompilerError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export class CompilerError implements Error {
44
public message: string;
55

66
constructor(detail: string) {
7-
this.message = `An error occured while compiling an App: ${detail}`;
7+
this.message = `An error occurred while compiling an App: ${detail}`;
88
}
99
}

packages/apps-engine/tests/server/errors/CompilerError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ describe('CompilerError', () => {
88
const er = new CompilerError('syntax');
99

1010
assert.strictEqual(er.name, 'CompilerError');
11-
assert.strictEqual(er.message, 'An error occured while compiling an App: syntax');
11+
assert.strictEqual(er.message, 'An error occurred while compiling an App: syntax');
1212
});
1313
});

packages/media-signaling/src/lib/Call.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ export class ClientMediaCall implements IClientMediaCall {
14191419
break;
14201420
}
14211421
} catch (e) {
1422-
this.config.logger?.error('An error occured while reviewing the webrtc connection state change', e);
1422+
this.config.logger?.error('An error occurred while reviewing the webrtc connection state change', e);
14231423
}
14241424
}
14251425

0 commit comments

Comments
 (0)