Skip to content

Commit

Permalink
Reclassify Dart results - many to unsupported (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-oly authored Dec 4, 2023
1 parent c9e3a71 commit 54e5f5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executors/dart_web/bin/likely_subtags.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ String testLikelySubtags(String jsonEncoded) {
} catch (error) {
outputLine.addAll({
'error_message': error.toString(),
'unsupported': 'unsupported subtags',
'error_type': 'unsupported',
'error': 'Failure in locale subtags.'
});
}
Expand Down
3 changes: 3 additions & 0 deletions executors/dart_web/bin/numberformat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ String testDecimalFormat(
// This is a special kind of unsupported.
return jsonEncode({
'label': label,
'unsupported': 'parsing error',
'error_type': 'unsupported',
'error': 'Option parsing error: $e',
});
}
Expand Down Expand Up @@ -156,6 +158,7 @@ String testDecimalFormat(
return jsonEncode({
'label': label,
'unsupported': 'unsupported_options',
'error_type': 'unsupported',
'error_detail': {'unsupported_options': unsupportedOptions}
});
}
Expand Down

0 comments on commit 54e5f5a

Please sign in to comment.