code: func jobFromEngine(c *router.Context, projectID, jobName string) *engine.Job {
  	job, err := config(c.Context).Engine.GetVisibleJob(c.Context, projectID+"/"+jobName)
  	switch {
  	case err == engine.ErrNoSuchJob:
  		uiErrNoJobOrNoPerm.render(c)
  		return nil
  	case err != nil:
  		panic(err)
  	default:
  		return job
  	}
  }
docs: // jobFromEngine fetches an *engine.Job and returns it, or writes HTTP Not Found
  // reply to the response writer and returns nil if it is not found.
  //
  // Panics on unexpected errors, so panic catcher middleware can write HTTP
  // Internal Server Error page.