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
This commit is contained in:
Vincent 2025-01-16 12:00:11 +01:00 committed by Jessica Janiuk
parent 3bc113d514
commit 74cd7be6b3

View file

@ -692,7 +692,9 @@ export function toStylingKeyValueArray(
stringParser(styleKeyValueArray, unwrappedValue);
} else {
ngDevMode &&
throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
throwError(
'Unsupported styling type: ' + typeof unwrappedValue + ' (' + unwrappedValue + ')',
);
}
return styleKeyValueArray;
}