Skip to content

Incorrect return codes on failures #507

Description

@m-samoylov

Versions of kyt, node, OS

kyt version: 0.5.2
node: 8.1.3

Bug or Feature?

Bug

Current Behavior

If command kyt build failed on loading kyt.config.js it exited with 0 return code. It breaks our CI system.

Desired Behavior

On failure return non-zero code.

kyt-core/utils/kytConfig.js:

catch (error) {
      logger.error('Error loading your kyt.config.js:', error);
      process.exit();
    }

Also, i found similar weirdnesses with return codes in this files:

cli/actions/proto.js:43
cli/actions/proto.js:57
utils/ifPortIsFreeDo.js:10
utils/ifPortIsFreeDo.js:18
utils/webpackCompiler.js:14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions