Skip to content

Do not spam terminal with logging messages #887

@cschroeter

Description

@cschroeter

Node version (or tell us if you're using electron or some other framework):

10.8.0

ShellJS version (the most recent version/Github branch you see the bug on):

0.8.2

Operating system:

MacOS

Description of the bug:

Logs sdterror on console if you try to execute an unknown command.

Expected behavior:

Do not log stderror on console

Example ShellJS command to reproduce the error:

const { stdout } = await shell.exec(`dpkg -l | grep ${packageName} | awk '{print $3}'`);
dpkg-query: error: failed to open package info file '/usr/local/var/lib/dpkg/status' for reading: No such file or directory```

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion from a user (which may not require code/documentation changes to the project)wontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions