Skip to content

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

@sholsinger

Description

@sholsinger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions