File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ final _runScriptPath = p.join(cacheDirPath, 'run.dart');
27
27
28
28
final _runScript = File (_runScriptPath);
29
29
30
- const _configPath = 'tool/ dart_dev/ config.dart' ;
30
+ final _configPath = p. join ( 'tool' , ' dart_dev' , ' config.dart') ;
31
31
32
- const _oldDevDartPath = 'tool/ dev.dart' ;
32
+ final _oldDevDartPath = p. join ( 'tool' , ' dev.dart') ;
33
33
34
34
final _relativeDevDartPath = p.relative (
35
35
p.absolute (_configPath),
@@ -42,7 +42,7 @@ Future<void> run(List<String> args) async {
42
42
final oldDevDartExists = File (_oldDevDartPath).existsSync ();
43
43
44
44
if (! configExists) {
45
- log.fine ('No custom `tool/dart_dev/config.dart ` file found; '
45
+ log.fine ('No custom `$ _configPath ` file found; '
46
46
'using default config.' );
47
47
}
48
48
if (oldDevDartExists) {
@@ -162,8 +162,7 @@ Future<void> runWithConfig(
162
162
config = configGetter ();
163
163
} catch (error) {
164
164
stderr
165
- ..writeln (
166
- 'Invalid "tool/dart_dev/config.dart" in ${p .absolute (p .current )}' )
165
+ ..writeln ('Invalid "$_configPath " in ${p .absolute (p .current )}' )
167
166
..writeln ()
168
167
..writeln ('It should provide a `Map<String, DevTool> config;` getter,'
169
168
' but it either does not exist or threw unexpectedly:' )
You can’t perform that action at this time.
0 commit comments