99 "github.com/gin-gonic/gin"
1010
1111 api "github.com/go-vela/server/api/types"
12- "github.com/go-vela/types"
1312 "github.com/go-vela/worker/executor"
1413 exec "github.com/go-vela/worker/router/middleware/executor"
1514)
@@ -57,7 +56,7 @@ func GetExecutor(c *gin.Context) {
5756 if err != nil {
5857 msg := fmt .Errorf ("unable to retrieve build: %w" , err ).Error ()
5958
60- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
59+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
6160
6261 return
6362 }
@@ -67,7 +66,7 @@ func GetExecutor(c *gin.Context) {
6766 if err != nil {
6867 msg := fmt .Errorf ("unable to retrieve pipeline: %w" , err ).Error ()
6968
70- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
69+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
7170
7271 return
7372 }
@@ -104,7 +103,7 @@ func GetExecutors(c *gin.Context) {
104103 if value == nil {
105104 msg := "no running executors found"
106105
107- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
106+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
108107
109108 return
110109 }
@@ -114,7 +113,7 @@ func GetExecutors(c *gin.Context) {
114113 if ! ok {
115114 msg := "unable to get executors"
116115
117- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
116+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
118117
119118 return
120119 }
@@ -136,7 +135,7 @@ func GetExecutors(c *gin.Context) {
136135 if err != nil {
137136 msg := fmt .Errorf ("unable to retrieve build: %w" , err ).Error ()
138137
139- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
138+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
140139
141140 return
142141 }
@@ -146,7 +145,7 @@ func GetExecutors(c *gin.Context) {
146145 if err != nil {
147146 msg := fmt .Errorf ("unable to retrieve pipeline: %w" , err ).Error ()
148147
149- c .AbortWithStatusJSON (http .StatusInternalServerError , types .Error {Message : & msg })
148+ c .AbortWithStatusJSON (http .StatusInternalServerError , api .Error {Message : & msg })
150149
151150 return
152151 }
0 commit comments