From f6959ffe2c5defede07b61197078876c55370066 Mon Sep 17 00:00:00 2001 From: Itunu Raimi Date: Tue, 22 Oct 2024 15:15:11 +0100 Subject: [PATCH] temporary workaround for crash --- Nos/Router.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Nos/Router.swift b/Nos/Router.swift index 651f3da8c..c9761e8ab 100644 --- a/Nos/Router.swift +++ b/Nos/Router.swift @@ -64,7 +64,14 @@ import Dependencies ) ) } else { - fatalError("Tried to push a note with no identifier; that's not going to work.") + let debuggingDetails = """ + noteId: \(String(describing: note.identifier)) \n + replaceableIdentifier: \(String(describing: note.replaceableIdentifier)) \n + noteAuthor: \(String(describing: note.author)) + """ + + crashReporting.report("Tried to push a note and it failed. Details: \n \(debuggingDetails)") + assertionFailure("Tried to push a note and it failed. Details: \n \(debuggingDetails)") } }