File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ func (app *Application) getBuildJobLogs(c *gin.Context) {
132132 if logs == nil {
133133 c .AbortWithStatusJSON (
134134 http .StatusNotFound ,
135- NewErrorResponse ("Failed to find job " ),
135+ NewErrorResponse ("job not found " ),
136136 )
137137 return
138138 }
@@ -184,14 +184,14 @@ func (app *Application) buildJobStatus(c *gin.Context) {
184184 return
185185 }
186186 job , err := app .artifactory .GetBuild (req )
187- if err != nil {
187+ if err != nil && ! errors . Is ( err , artifactory . ErrBuildNotFound ) {
188188 ServiceUnavailableResponse (c , err )
189189 return
190190 }
191191 if job == nil {
192192 c .AbortWithStatusJSON (
193193 http .StatusNotFound ,
194- NewErrorResponse ("Failed to find job with requested params " ),
194+ NewErrorResponse ("no such job" ),
195195 )
196196 return
197197 }
You can’t perform that action at this time.
0 commit comments