Skip to content

Commit

Permalink
LogError when build fails
Browse files Browse the repository at this point in the history
Add minimum LogError messages to inform user when 'app run' command exits.
  • Loading branch information
doingnz committed Feb 19, 2024
1 parent 89fde70 commit 5442010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/v2/Meadow.Cli/Commands/Current/App/AppRunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ protected override async ValueTask ExecuteCommand()

if (!await BuildApplication(path, CancellationToken))
{
Logger?.LogError("Build Failed.");
return;
}

if (!await TrimApplication(path, CancellationToken))
{
Logger?.LogError("Trim Failed.");
return;
}

Expand All @@ -76,6 +78,7 @@ protected override async ValueTask ExecuteCommand()

if (!await DeployApplication(connection, path, CancellationToken))
{
Logger?.LogError("Deploy Application Failed.");
return;
}

Expand Down

0 comments on commit 5442010

Please sign in to comment.