Correct typo in init command

This commit is contained in:
Tobe O 2018-07-14 18:58:53 -04:00
parent 5eb15fcd06
commit 96b9668ad5

View file

@ -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) {
print(red.wrap("$ballot Could not initialize Angel project.")); if (e is! String) {
print(red.wrap("$ballot Could not initialize Angel project."));
}
rethrow; rethrow;
} }
} }