diff --git a/lib/cli/cli.dart b/lib/cli/cli.dart index f53373f..ffc9e4a 100644 --- a/lib/cli/cli.dart +++ b/lib/cli/cli.dart @@ -219,7 +219,7 @@ class _PrinterWindows extends Printer { var c = Completer(); StringBuffer message = StringBuffer(); message.writeln('@echo off\r'); - message.writeln('chcp 65001'); + message.writeln('chcp 65001 > nul'); message.writeln('setlocal\r'); message.writeln('call :setESC\r'); diff --git a/lib/oto/application.dart b/lib/oto/application.dart index 10137f3..7539912 100644 --- a/lib/oto/application.dart +++ b/lib/oto/application.dart @@ -84,6 +84,7 @@ class Application { } } on Exception catch (e) { await CLI.printString(e.toString(), color: Color.red); + await printBuildStep('Build Failed', color: Color.red); return; } @@ -125,13 +126,11 @@ class Application { } Future printBuildStep(String name, {Color? color}) async { - var colorIn = color ?? Color.green; var message = '''************************************************************************************ * $name ************************************************************************************'''; - - await CLI.printString(message, color: colorIn); + await CLI.printString(message, color: color ?? Color.green); return simpleFuture; }