From 95b1a2725454227802e9ab4e1964d28d8fa7b194 Mon Sep 17 00:00:00 2001 From: Dylan Moreland Date: Wed, 20 Sep 2023 12:48:20 -0400 Subject: [PATCH] Error if not one of our two --- internal/controllers/nft_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/controllers/nft_controller.go b/internal/controllers/nft_controller.go index 74b0c6835..9218e3a2c 100644 --- a/internal/controllers/nft_controller.go +++ b/internal/controllers/nft_controller.go @@ -441,6 +441,8 @@ func (nc *NFTController) GetAftermarketDeviceNFTImage(c *fiber.Ctx) error { key = nc.Settings.AutoPiNFTImage case "Hashdog": key = nc.Settings.MacaronNFTImage + default: + return fiber.NewError(fiber.StatusInternalServerError, fmt.Sprintf("No NFT image for manufacturer %s.", dm.Name)) } s3o, err := nc.s3.GetObject(c.Context(), &s3.GetObjectInput{