style(split-pane): use proper grammar in warnings (#17681)

This commit is contained in:
Ken Sodemann
2019-03-05 09:14:35 -06:00
committed by Brandy Carney
parent 1c60a083e5
commit 70ea70346b

View File

@ -150,7 +150,7 @@ export class SplitPane implements ComponentInterface {
const isMain = contentId !== undefined ? child.id === contentId : child.hasAttribute('main');
if (isMain) {
if (foundMain) {
console.warn('split pane can not have more than one main node');
console.warn('split pane cannot have more than one main node');
return;
}
foundMain = true;
@ -158,7 +158,7 @@ export class SplitPane implements ComponentInterface {
setPaneClass(child, isMain);
}
if (!foundMain) {
console.warn('split pane could not found any main node');
console.warn('split pane does not have a specified main node');
}
}