repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
da1fd09
parent
707a530
author
Eric Bower
date
2023-08-14 14:25:13 +0000 UTC
fix: better 404
1 files changed,  +1, -1
M pgs/api.go
+1, -1
1@@ -84,7 +84,7 @@ func assetHandler(w http.ResponseWriter, h *AssetHandler) {
2 			bucket.Name,
3 			h.Filepath,
4 		)
5-		http.Error(w, err.Error(), http.StatusInternalServerError)
6+		http.Error(w, "404 not found", http.StatusNotFound)
7 		return
8 	}
9 	defer contents.Close()