You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JournalApp/Data/AppDataService.cs
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ public async Task<bool> StartImportWizard(IDialogService dialogService, string p
10
10
11
11
// Warn if an export wasn't done in the last week.
12
12
if(DateTimeOffset.Now>LastExportDate.AddDays(7)&&
13
-
awaitdialogService.ShowCustomMessageBox(string.Empty,"It's recommended to export your data first. You can do this in Settings.",yesText:"Continue anyway",cancelText:"Go back")==null)
13
+
awaitdialogService.ShowCustomMessageBox(string.Empty,"It's recommended to export your data first in case there are any issues; You can do this in Settings.",yesText:"Continue anyway",cancelText:"Go back")==null)
14
14
{
15
15
logger.LogDebug("User didn't want to import after being warned about export");
16
16
returnfalse;
@@ -56,25 +56,33 @@ public async Task<bool> StartImportWizard(IDialogService dialogService, string p
logger.LogDebug($"Added new data after {sw.ElapsedMilliseconds}ms");
83
+
logger.LogError(ex,$"Import failed during database changes after {sw.ElapsedMilliseconds}ms");
84
+
awaitdialogService.ShowCustomMessageBox(string.Empty,$"Import critically failed; Database is potentially corrupt and app may need to be reinstalled due to error: {ex}.",showFeedbackLink:true);
0 commit comments