mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
3bc113d514
commit
74cd7be6b3
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue