File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ class MockBuilder implements Builder {
76
76
final entryLib = await buildStep.inputLibrary;
77
77
final sourceLibIsNonNullable = entryLib.isNonNullableByDefault;
78
78
79
- if (buildStep.allowedOutputs.length > 1 ) {
80
- throw ArgumentError ('Build_extensions has conflicting outputs on file '
81
- '`${buildStep .inputId .path }`, it usually caused by missconfiguration '
82
- 'on your `build.yaml` file' );
79
+ final mockLibraryAsset = buildStep.allowedOutputs.singleOrNull;
80
+ if (mockLibraryAsset == null ) {
81
+ throw ArgumentError ('Build_extensions has missing or conflicting outputs for '
82
+ '`${buildStep .inputId .path }`, this is usually caused by a misconfigured '
83
+ 'build extension override in `build.yaml`' );
83
84
}
84
- final mockLibraryAsset = buildStep.allowedOutputs.single;
85
85
86
86
final inheritanceManager = InheritanceManager3 ();
87
87
final mockTargetGatherer =
You can’t perform that action at this time.
0 commit comments