From 75383d060fa55de111d8e472eadf6afd388a31d0 Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Wed, 12 Oct 2016 09:47:41 -0700 Subject: [PATCH] Updated route_name in json to app_name. --- api/models/task.go | 2 +- api/server/runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/models/task.go b/api/models/task.go index 6c294764f..3ca5228be 100644 --- a/api/models/task.go +++ b/api/models/task.go @@ -52,7 +52,7 @@ type Task struct { Read Only: true */ - AppName string `json:"route_name,omitempty"` + AppName string `json:"app_name,omitempty"` Path string `json:"path"` diff --git a/api/server/runner.go b/api/server/runner.go index 03c9524ba..2468358a6 100644 --- a/api/server/runner.go +++ b/api/server/runner.go @@ -73,7 +73,7 @@ func handleRequest(c *gin.Context, enqueue models.Enqueue) { } // if still no appName, we gotta exit if appName == "" { - log.WithError(err).Error(models.ErrAppsNotFound) + log.WithError(err).Error("Invalid app, blank") c.JSON(http.StatusBadRequest, simpleError(models.ErrAppsNotFound)) return }