Skip to content

Commit 026c456

Browse files
mathis-marcotteMathis Marcotte
and
Mathis Marcotte
authored
added error handling if no default notebook found (#315)
* added error handling if no default notebook found --------- Co-authored-by: Mathis Marcotte <[email protected]>
1 parent fbe030f commit 026c456

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

notebooks.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,12 @@ func (s *server) GetDefaultNotebook(w http.ResponseWriter, r *http.Request) {
349349
}
350350
}
351351
}
352+
353+
if !resp.APIResponseBase.Success {
354+
s.error(w, r, errors.New("No default notebook found"))
355+
return
356+
}
357+
352358
s.respond(w, r, resp)
353359
}
354360

0 commit comments

Comments
 (0)