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

Cancelling of Attributes Definition Generator Causes Unhandled Promise Rejection Exception #7

Open
sholsinger opened this issue Mar 1, 2021 · 0 comments

Comments

@sholsinger
Copy link

By using ctrl+c and cancelling out of the prompt, the user receives the following exception:

✖ Directory containing system-objecttype-extensions.xml? … ./sites/site_template/meta/
(node:38991) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:125:11)
    at Object.join (path.js:1147:7)
    at /Users/john.smith/.nvm/versions/node/v10.22.0/lib/node_modules/sfcc-dts/dist/updateattrs.js:40:37
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:38991) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:38991) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant