improve error message

Jens A. Koch's Avatar

Jens A. Koch

05 Sep, 2016 12:24 AM

The following error message isn't very helpful and now i'm simply guessing around what Appveyor expects or accepts:

"Packaging artifacts...Pattern contains invalid characters."

It would be nice to provide a more detailed or guiding message, which shows the position of the error.

"Packaging artifacts...Pattern contains invalid characters."
"Error: Line 86 - Character 20"

or

" -file: "/foo&/(.zip""
" ^ invalid character"

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Sep, 2016 04:43 AM

    Feodor Fitsner's Avatar

    Sure, what was the path/character that caused that error?

  2. 2 Posted by Jens A. Koch on 05 Sep, 2016 09:26 AM

    Jens A. Koch's Avatar

    I still haven't found the cause for the error.
    I'm using

    after_build:
      - dir C:\projects\build\Release /s

    artifacts:
      - path: C:\projects\build\$(configuration)
        name: ReleaseArtifact

    $(configuration) is also used in the manual.
    Do i need to single quote it?

  3. Support Staff 3 Posted by Feodor Fitsner on 05 Sep, 2016 05:16 PM

    Feodor Fitsner's Avatar

    Path should be relative to the build root folder:

    artifacts: 
      - path: $(configuration) 
        name: ReleaseArtifact
    
  4. 4 Posted by Ilya Finkelshte... on 08 Sep, 2016 02:29 AM

    Ilya Finkelshteyn's Avatar

    Please watch this https://github.com/appveyor/ci/issues/1023 issue. It is little different angle of view but should improve experience too.

    --ilya.

  5. 5 Posted by Jens A. Koch on 09 Sep, 2016 11:07 AM

    Jens A. Koch's Avatar

    I would suggest to lift the restriction that paths need to relative to the build root folder and allow absolute paths on artifacts: path:

    And here is the next error message to improve:

    "Command exited with code 255"

    Which command exited and why?

  6. 6 Posted by Ilya Finkelshte... on 09 Sep, 2016 06:09 PM

    Ilya Finkelshteyn's Avatar

    Hi Jens,

    We created separate issue for this https://github.com/appveyor/ci/issues/1026

    For now we just made error message very clear.

    What about Command exited with code <code_returned>, it is always from the last command and it should be displayed in log…

    Thank you,
    Ilya.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

13 Sep, 2023 06:05 AM
10 Sep, 2023 03:43 PM
09 Sep, 2023 05:53 PM
08 Sep, 2023 07:10 PM
31 Aug, 2023 07:59 PM
13 Aug, 2023 04:55 AM