@@ -46,8 +46,8 @@ void main() {
4646 var process = await _runWebDev (['build' ]);
4747 var output = (await process.stdoutStream ().join ('\n ' )).trim ();
4848
49- expect (output, contains (r'''Could not run in the current directory .
50- A dependency on `build_runner` was not found .''' ));
49+ expect (output, contains (r'''webdev could not run for this project .
50+ You must have a dependency on `build_runner` in `pubspec.yaml` .''' ));
5151 await process.shouldExit (78 );
5252 });
5353
@@ -66,11 +66,11 @@ name: sample
6666 var process = await _runWebDev (['build' ], workingDirectory: d.sandbox);
6767
6868 await expectLater (
69- process.stdout, emits ('Could not run in the current directory .' ));
69+ process.stdout, emits ('webdev could not run for this project .' ));
7070 await expectLater (
7171 process.stdout,
7272 emits ('The `build_runner` version – $version – '
73- 'is not within the supported range – >= 0.8.0 <0.9 .0.' ));
73+ 'is not within the allowed constraint – ^ 0.8.0.' ));
7474 await process.shouldExit (78 );
7575 });
7676 }
@@ -81,7 +81,7 @@ name: sample
8181
8282 var output = await process.stdoutStream ().join ('\n ' );
8383
84- expect (output, contains ('Could not run in the current directory .' ));
84+ expect (output, contains ('webdev could not run for this project .' ));
8585 expect (output, contains ('Could not find a file named "pubspec.yaml"' ));
8686 await process.shouldExit (78 );
8787 });
@@ -95,7 +95,7 @@ name: sample
9595
9696 var output = await process.stdoutStream ().join ('\n ' );
9797
98- expect (output, contains ('Could not run in the current directory .' ));
98+ expect (output, contains ('webdev could not run for this project .' ));
9999 expect (output,
100100 contains ('No pubspec.lock file found, please run "pub get" first.' ));
101101 await process.shouldExit (78 );
@@ -112,7 +112,7 @@ name: sample
112112
113113 var output = await process.stdoutStream ().join ('\n ' );
114114
115- expect (output, contains ('Could not run in the current directory .' ));
115+ expect (output, contains ('webdev could not run for this project .' ));
116116 expect (output,
117117 contains ('No .packages file found, please run "pub get" first.' ));
118118 await process.shouldExit (78 );
@@ -131,7 +131,7 @@ name: sample
131131
132132 var output = await process.stdoutStream ().join ('\n ' );
133133
134- expect (output, contains ('An unexpected exception has occurred .' ));
134+ expect (output, contains ('webdev failed with an unexpected exception .' ));
135135
136136 // The isolate will fail - broken .packages file
137137 expect (output, contains ('Unable to spawn isolate' ));
@@ -156,7 +156,7 @@ dependencies:
156156
157157 var output = await process.stdoutStream ().join ('\n ' );
158158
159- expect (output, contains ('Could not run in the current directory .' ));
159+ expect (output, contains ('webdev could not run for this project .' ));
160160 expect (
161161 output,
162162 contains (
0 commit comments