Assign err. Fixes tests that were not working

This commit is contained in:
James Jeffrey
2017-07-05 16:54:12 -07:00
parent b4d39c0f3c
commit 7f226bc96b

View File

@@ -35,7 +35,7 @@ func (s *Server) handleRouteCreateOrUpdate(c *gin.Context) {
}
//Create the app if it does not exist.
s.createApp(ctx, c, log, wroute, method)
err = s.createApp(ctx, c, log, wroute, method)
if err != nil {
c.JSON(http.StatusInternalServerError, simpleError(err))
return