Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.4+1

* Give more information when `dartfmt` fails.

## 0.5.4

* Update to latest `build`, `build_runner`, and `build_test` releases.
Expand Down
10 changes: 6 additions & 4 deletions lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ class GeneratorBuilder extends Builder {
genPartContent = formatter.format(genPartContent);
} catch (e, stack) {
buildStep.logger.severe(
'''Error formatting generated source code for ${library.identifier}
which was output to ${_generatedFile(buildStep.inputId).path}.\n
This may indicate an issue in the generated code or in the formatter.\n
Please check the generated code and file an issue on source_gen if appropriate.''',
'Error formatting generated source code for ${library.identifier}'
'which was output to ${_generatedFile(buildStep.inputId).path}.\n'
'This may indicate an issue in the generated code or in the '
'formatter.\n'
'Please check the generated code and file an issue on source_gen if '
'appropriate.',
e,
stack);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: source_gen
version: 0.5.4
version: 0.5.4+1
author: Dart Team <misc@dartlang.org>
description: Automatic sourcecode generation for Dart
homepage: https://github.com/dart-lang/source_gen
Expand Down