From 8a45c302c1b71408bb2b570a7ab526b7d943e1ac Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Wed, 8 May 2024 19:44:49 -0500 Subject: [PATCH] chore: Better formatting --- debug/src/debug.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/debug/src/debug.js b/debug/src/debug.js index d0f6e35c29..b69c916e53 100644 --- a/debug/src/debug.js +++ b/debug/src/debug.js @@ -430,11 +430,8 @@ export function initDebug() { } else if (type === 'a' || type === 'button') { if (getDomChildren(vnode).find(childType => childType === type)) { console.error( - 'Improper nesting of interactive content. Your <' + - type + - '> should not have ' + - 'other ' + - (type === 'a' ? 'anchor' : 'button') + + `Improper nesting of interactive content. Your <${type}>` + + ` should not have other ${type === 'a' ? 'anchor' : 'button'}` + ' tags as child-elements.' + serializeVNode(vnode) + `\n\n${getOwnerStack(vnode)}`