Skip to content

Insider finishing with status code 0 when some error occurred #29

@mattheusv

Description

@mattheusv

Describe the bug
Self-explanatory title

insider/ (master) >>> ./insider -tech javascript -target invalid-target -no-banner
[INSIDER]: 2020/07/07 10:08:05 Starting analysis for JavaScript/TypeScript app #
[INSIDER]: 2020/07/07 10:08:05 Starting JavaScript source code analysis
[INSIDER]: 2020/07/07 10:08:05 Package.json not found but the process goes on
[INSIDER]: 2020/07/07 10:08:05 lstat invalid-target: no such file or directory
[INSIDER]: 2020/07/07 10:08:05 Finished JavaScript/TypeScript analysis
[INSIDER]: 2020/07/07 10:08:05 lstat invalid-target: no such file or directory
insider/ (master) >>> echo $?
0
insider/ (master) >>>

To Reproduce
Just pass some folder that not exists

Expected behavior
Exit with status != 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions