Correct typo in init command
This commit is contained in:
parent
5eb15fcd06
commit
96b9668ad5
1 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,7 @@ class InitCommand extends Command {
|
||||||
..write(cyan.wrap('hot-reloading'))
|
..write(cyan.wrap('hot-reloading'))
|
||||||
..write('), run ')
|
..write('), run ')
|
||||||
..write(magenta.wrap('`dart --observe bin/dev.dart`'))
|
..write(magenta.wrap('`dart --observe bin/dev.dart`'))
|
||||||
..writeln(' in your terminal')
|
..writeln(' in your terminal.')
|
||||||
..writeln()
|
..writeln()
|
||||||
..writeln('Find more documentation about Angel:')
|
..writeln('Find more documentation about Angel:')
|
||||||
..writeln(' * https://angel-dart.github.io')
|
..writeln(' * https://angel-dart.github.io')
|
||||||
|
@ -159,7 +159,9 @@ class InitCommand extends Command {
|
||||||
var gitDir = new Directory.fromUri(projectDir.uri.resolve(".git"));
|
var gitDir = new Directory.fromUri(projectDir.uri.resolve(".git"));
|
||||||
if (await gitDir.exists()) await gitDir.delete(recursive: true);
|
if (await gitDir.exists()) await gitDir.delete(recursive: true);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (e is! String) {
|
||||||
print(red.wrap("$ballot Could not initialize Angel project."));
|
print(red.wrap("$ballot Could not initialize Angel project."));
|
||||||
|
}
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue