Added log messages for a few errors

This commit is contained in:
Caleb J. Gardner
2025-09-05 03:27:13 -05:00
parent 3e1078efec
commit 243fa03af0
6 changed files with 11 additions and 2 deletions
+2
View File
@@ -112,6 +112,7 @@ func (b *Backend) managementDeleteCrash(w http.ResponseWriter, r *http.Request)
func (b *Backend) actualCrashDelete(ctx context.Context, w http.ResponseWriter, ap App, crashID string) {
crash := ap.CrashTable()
if crash == nil {
log.Println(ap.AppID(), "misconfigured: crash table is nil.")
ReturnError(w, http.StatusInternalServerError, "misconfigured", "Server Misconfigured")
return
}
@@ -166,6 +167,7 @@ func (b *Backend) managementArchiveCrash(w http.ResponseWriter, r *http.Request)
func (b *Backend) actualCrashArchive(ctx context.Context, w http.ResponseWriter, ap App, toArchive ArchivedCrash) {
crash := ap.CrashTable()
if crash == nil {
log.Println(ap.AppID(), "misconfigured: crash table is nil.")
ReturnError(w, http.StatusInternalServerError, "misconfigured", "Server Misconfigured")
return
}