mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user