···519 s.pages.Notice(w, "repo", "Failed to create repository on knot server.")
520 return
521 }
522- if resp.StatusCode != http.StatusNoContent {
523- s.pages.Notice(w, "repo", fmt.Sprintf("Server returned unexpected status: %d", resp.StatusCode))
00524 return
0000525 }
526527 // add to local db
···519 s.pages.Notice(w, "repo", "Failed to create repository on knot server.")
520 return
521 }
522+523+ switch resp.StatusCode {
524+ case http.StatusConflict:
525+ s.pages.Notice(w, "repo", "A repository with that name already exists.")
526 return
527+ case http.StatusInternalServerError:
528+ s.pages.Notice(w, "repo", "Failed to create repository on knot. Try again later.")
529+ case http.StatusNoContent:
530+ // continue
531 }
532533 // add to local db
+1-1
input.css
···21 @apply bg-opacity-30;
22 }
23 a {
24- @apply underline text-black hover:text-gray-800 visited:text-gray-600;
25 }
2627 @layer base {
···21 @apply bg-opacity-30;
22 }
23 a {
24+ @apply underline text-black hover:text-gray-800;
25 }
2627 @layer base {