Add verbosity to error messages

This commit is contained in:
pizzaboxer 2023-05-07 14:18:37 +01:00
parent cec5c58e7c
commit 57ead741f7
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -104,7 +104,7 @@ namespace Bloxstrap
Logger.WriteLine($"[App::OnStartup] {e.Exception}");
if (!IsQuiet)
Settings.Prop.BootstrapperStyle.GetNew().ShowError($"{e.Exception.GetType()}: {e.Exception.Message}");
Settings.Prop.BootstrapperStyle.GetNew().ShowError(e.Exception.ToString());
Terminate(Bootstrapper.ERROR_INSTALL_FAILURE);
}
@ -322,7 +322,7 @@ namespace Bloxstrap
throw t.Exception;
#else
var exception = t.Exception.InnerExceptions.Count >= 1 ? t.Exception.InnerExceptions[0] : t.Exception;
dialog?.ShowError($"{exception.GetType()}: {exception.Message}");
dialog?.ShowError(t.Exception.ToString());
Terminate(Bootstrapper.ERROR_INSTALL_FAILURE);
#endif
});