Skip to content

Commit

Permalink
Improve the error message every so little. (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramp committed Oct 10, 2023
1 parent c1782b8 commit 6527f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vector_graphics_compiler/lib/src/svg/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ class SvgParser {
/// `<style/>`, `<title/>`, and `<desc/>` elements.
void unhandledElement(XmlStartElementEvent event) {
final String errorMessage =
'unhandled element ${event.name}; Picture key: $_key';
'unhandled element <${event.name}/>; Picture key: $_key';
if (_warningsAsErrors) {
// Throw error instead of log warning.
throw UnimplementedError(errorMessage);
Expand Down

0 comments on commit 6527f45

Please sign in to comment.