improve error message
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"
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
Support Staff 1 Posted by Feodor Fitsner on 05 Sep, 2016 04:43 AM
Sure, what was the path/character that caused that error?
2 Posted by Jens A. Koch on 05 Sep, 2016 09:26 AM
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?
Support Staff 3 Posted by Feodor Fitsner on 05 Sep, 2016 05:16 PM
Path should be relative to the build root folder:
4 Posted by Ilya Finkelshte... on 08 Sep, 2016 02:29 AM
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 Posted by Jens A. Koch on 09 Sep, 2016 11:07 AM
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 Posted by Ilya Finkelshte... on 09 Sep, 2016 06:09 PM
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.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.