Skip to content

Commit

Permalink
refactor(core): Make unsupported styling type error message clearer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wartab committed Jan 16, 2025
1 parent c9eaf53 commit b73c593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/render3/instructions/styling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export function toStylingKeyValueArray(
stringParser(styleKeyValueArray, unwrappedValue);
} else {
ngDevMode &&
throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
throwError('Unsupported styling type: ' + typeof unwrappedValue + ' (' + unwrappedValue + ')');
}
return styleKeyValueArray;
}
Expand Down

0 comments on commit b73c593

Please sign in to comment.