Skip to content

Commit 74cd7be

Browse files
wartabthePunderWoman
authored andcommitted
refactor(core): Make unsupported styling type error message clearer (#59563)
The previous message would sound like a full sentence when using a signal without `()` (Example: Unsupported styling type function: [Input Signal: neutral]). The new formatting makes it a bit more obvious that the type itself is the problem. PR Close #59563
1 parent 3bc113d commit 74cd7be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/render3/instructions/styling.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,9 @@ export function toStylingKeyValueArray(
692692
stringParser(styleKeyValueArray, unwrappedValue);
693693
} else {
694694
ngDevMode &&
695-
throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
695+
throwError(
696+
'Unsupported styling type: ' + typeof unwrappedValue + ' (' + unwrappedValue + ')',
697+
);
696698
}
697699
return styleKeyValueArray;
698700
}

0 commit comments

Comments
 (0)