Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(worker): add error line number #3068 #3069

Merged
merged 1 commit into from Jul 25, 2018
Merged

fix(worker): add error line number #3068 #3069

merged 1 commit into from Jul 25, 2018

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Jul 24, 2018

Signed-off-by: Benjamin Coenen benjamin.coenen@corp.ovh.com

  1. Description
  2. Related issues
    close feature request: give the position of a bad interpolation in script (syntax error) #3068
  3. About tests
  4. Mentions
    cc @pgaxatte

@ovh/cds

Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
@bnjjj bnjjj added the bug label Jul 24, 2018
@bnjjj bnjjj requested review from fsamin and sguiheux July 24, 2018 13:44
@@ -155,7 +155,7 @@ func (w *currentWorker) runJob(ctx context.Context, a *sdk.Action, buildID int64
return sdk.Result{
Status: sdk.StatusFail.String(),
BuildID: buildID,
Reason: "Unable to interpolate action parameters",
Reason: err.Error(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i suggest: "Unable to interpolate action parameters (%v)", err

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, because in the error of interpolate there is already Unable to interpolate action parameters so in fact the final sentence is for example : Unable to interpolate action parameters: Invalid template format: template: input:17

@fsamin fsamin merged commit e9aca19 into master Jul 25, 2018
@fsamin fsamin deleted the fix_#3068 branch August 8, 2018 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: give the position of a bad interpolation in script (syntax error)
3 participants