From ff147a911da3b07cbcdf7a53d11b4421049e2146 Mon Sep 17 00:00:00 2001 From: Maarten de Kruijf <16100232+MaartendeKruijf@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:32:22 +0100 Subject: [PATCH 1/2] Log error on startup if .env is not loaded --- cmd/soarca/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/soarca/main.go b/cmd/soarca/main.go index fbb24813..e49a8559 100644 --- a/cmd/soarca/main.go +++ b/cmd/soarca/main.go @@ -45,7 +45,7 @@ func main() { err := godotenv.Load(".env") if err != nil { - log.Warning("Failed to read env variable, but will continue") + log.Warning("Failed to read env variables because of error: ", err, " , but will continue.") } Host = "localhost:" + utils.GetEnv("PORT", "8080") api.SwaggerInfo.Host = Host From 7e63e8fb81e0cd9d04125b3b72df27bec7e48fe8 Mon Sep 17 00:00:00 2001 From: Maarten de Kruijf <16100232+MaartendeKruijf@users.noreply.github.com> Date: Fri, 10 Jul 2026 16:49:56 +0200 Subject: [PATCH 2/2] Updated API swagger description --- pkg/api/manual/manual_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/manual/manual_api.go b/pkg/api/manual/manual_api.go index 74ea74d2..ff4bb918 100644 --- a/pkg/api/manual/manual_api.go +++ b/pkg/api/manual/manual_api.go @@ -58,7 +58,7 @@ func NewManualHandler(interaction interaction.IInteractionStorage) *ManualHandle // @Tags manual // @Accept json // @Produce json -// @Success 200 {object} api.Execution +// @Success 200 {object} []api.InteractionCommandData // @failure 400 {object} []api.InteractionCommandData // @Router /manual/ [GET] func (manualHandler *ManualHandler) GetPendingCommands(g *gin.Context) {