Skip to content

Commit

Permalink
Merge branch 'master' into release/2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyang2057 committed Nov 29, 2023
2 parents 711bcab + af51399 commit 0ea1d4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Nncase.Studio/ViewModels/CompileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,17 @@ public async Task Compile()
{
await Task.Run(async () => await compiler.CompileAsync(progress, _cts.Token));
}
catch (Exception)
catch (OperationCanceledException)
{
Context.OpenDialog("Compile has been cancel");
ProgressBarValue = 0;
return;
}
catch (Exception exp)
{
Context.OpenDialog($"Error:{exp.Message}");
return;
}

using (var os = File.OpenWrite(KmodelPath))
{
Expand Down

0 comments on commit 0ea1d4f

Please sign in to comment.