diff --git a/OpenUtau/Views/MainWindow.axaml.cs b/OpenUtau/Views/MainWindow.axaml.cs index 4dcb7e32b..e895c1d5a 100644 --- a/OpenUtau/Views/MainWindow.axaml.cs +++ b/OpenUtau/Views/MainWindow.axaml.cs @@ -986,7 +986,14 @@ async void OnDrop(object? sender, DragEventArgs args) { ThemeManager.GetString("dialogs.installdependency.caption"), MessageBox.MessageBoxButtons.OkCancel); if (result == MessageBox.MessageBoxResult.Ok) { - await PackageManager.Inst.InstallFromFileAsync(file); + try { + await PackageManager.Inst.InstallFromFileAsync(file); + } catch (Exception e) { + Log.Error(e, $"Failed to install dependency {file}"); + _ = await MessageBox.ShowError(this, new MessageCustomizableException( + $"Failed to install dependency {file}", + $": {file}", e)); + } } } }