Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Apr 22, 2021
1 parent dfc1e43 commit 084e138
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x-pack/plugins/alerting/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class AlertingPublicPlugin implements Plugin<PluginSetupContract, PluginS
const alertType = await loadAlertType({ http: core.http, id: alertTypeId });
if (!alertType) {
// eslint-disable-next-line no-console
console.log(`Alert type "${alertTypeId}" is not registered.`);
console.log(
`Unable to register navigation for alert type "${alertTypeId}" because it is not registered on the server side.`
);
return;
}
this.alertNavigationRegistry!.register(consumer, alertType, handler);
Expand All @@ -59,7 +61,9 @@ export class AlertingPublicPlugin implements Plugin<PluginSetupContract, PluginS

if (!alertType) {
// eslint-disable-next-line no-console
console.log(`Alert type "${alert.alertTypeId}" is not registered.`);
console.log(
`Unable to get navigation for alert type "${alert.alertTypeId}" because it is not registered on the server side.`
);
return;
}

Expand Down

0 comments on commit 084e138

Please sign in to comment.