Skip to content

Commit 2f9e35f

Browse files
authored
Reflow and format help message (#133)
Use concatenated `''` rather than `'''` so that we can break lines separately in the source from where we want them broken in the output
1 parent a0cb07d commit 2f9e35f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.4+1
2+
3+
* Give more information when `dartfmt` fails.
4+
15
## 0.5.4
26

37
* Update to latest `build`, `build_runner`, and `build_test` releases.

lib/src/builder.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ class GeneratorBuilder extends Builder {
7878
genPartContent = formatter.format(genPartContent);
7979
} catch (e, stack) {
8080
buildStep.logger.severe(
81-
'''Error formatting generated source code for ${library.identifier}
82-
which was output to ${_generatedFile(buildStep.inputId).path}.\n
83-
This may indicate an issue in the generated code or in the formatter.\n
84-
Please check the generated code and file an issue on source_gen if appropriate.''',
81+
'Error formatting generated source code for ${library.identifier}'
82+
'which was output to ${_generatedFile(buildStep.inputId).path}.\n'
83+
'This may indicate an issue in the generated code or in the '
84+
'formatter.\n'
85+
'Please check the generated code and file an issue on source_gen if '
86+
'appropriate.',
8587
e,
8688
stack);
8789
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen
2-
version: 0.5.4
2+
version: 0.5.4+1
33
author: Dart Team <[email protected]>
44
description: Automatic sourcecode generation for Dart
55
homepage: https://github.com/dart-lang/source_gen

0 commit comments

Comments
 (0)