-
Notifications
You must be signed in to change notification settings - Fork 38
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: check if output parameter is located inside root #896
Conversation
|
||
if (!writePath.startsWith(writeBasePath)) { | ||
throw new UnarchiveIncluderError( | ||
`Invalid output parameter: ${output}. Provide includer with output parameter, which is located inside the documentation`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say this error message is a bit confusing.
Maybe something along the lines of Expected the unarchive destination to be located inside project root, got: ${output}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with what @brotheroftux suggested, error message could be better
|
||
if (!writePath.startsWith(writeBasePath)) { | ||
throw new UnarchiveIncluderError( | ||
`Invalid output parameter: ${output}. Provide includer with output parameter, which is located inside the documentation`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
9792848
to
6c298a8
Compare
6c298a8
to
bd3479f
Compare
No description provided.