Better error logging. MessageBoxAlertAdmin to make it easier for users to report errors

This commit is contained in:
Robert McRackan 2021-07-20 14:27:27 -04:00
parent 1ba54a74af
commit c49edbc77b
13 changed files with 348 additions and 33 deletions

View file

@ -35,9 +35,10 @@ namespace LibationWinForms.Dialogs
}
catch (Exception ex)
{
var msg = "Error importing library. Please try again. If this still happens after 2 or 3 tries, stop and contact administrator";
Serilog.Log.Logger.Error(ex, msg);
MessageBox.Show(msg, "Error importing library", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBoxAlertAdmin.Show(
"Error importing library. Please try again. If this still happens after 2 or 3 tries, stop and contact administrator",
"Error importing library",
ex);
}
}