Skip to content

Commit 22af5fc

Browse files
mathis-marcotteMathis Marcotte
and
Mathis Marcotte
authored
updated return code for no default notebook (#316)
* updated return code for no default notebook * removed whitespace --------- Co-authored-by: Mathis Marcotte <[email protected]>
1 parent 026c456 commit 22af5fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notebooks.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,11 @@ func (s *server) GetDefaultNotebook(w http.ResponseWriter, r *http.Request) {
351351
}
352352

353353
if !resp.APIResponseBase.Success {
354-
s.error(w, r, errors.New("No default notebook found"))
354+
s.respond(w, r, &APIResponseBase{
355+
Success: false,
356+
Status: http.StatusNotFound,
357+
Log: "No default notebook found",
358+
})
355359
return
356360
}
357361

0 commit comments

Comments
 (0)