Skip to content

Commit

Permalink
temporary workaround for crash
Browse files Browse the repository at this point in the history
  • Loading branch information
pelumy committed Oct 22, 2024
1 parent 09c54e5 commit f6959ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Nos/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
}

Expand Down

0 comments on commit f6959ff

Please sign in to comment.