Closed Kaipirinha closed 4 years ago
Added error handling (which was missing)
Having an invalid folder in your sechub.json now looks like this:
_____ _ _ _
/ ___| | | | | | |
\ `--. ___ ___| |_| |_ _| |__
`--. \/ _ \/ __| _ | | | | '_ \
/\__/ / __/ (__| | | | |_| | |_) |
\____/ \___|\___\_| |_/\__,_|_.__/ Client Version 0.0.0-a5e96c6-dirty-latest
- Creating new sechub job
2020/06/10 11:00:18 Zipping folder: sechub-cli/src (/home/developer/git/sechub-oss/sechub-cli/src)
Folder not found: invalid-folder (/home/developer/git/sechub-oss/invalid-folder)
Exiting due to fatal error...
Issue/Reproduction: Configuring some SRC paths for SAST Scan as follows
For example, the second entry is somehow wrong. In my case, i forgot a subdirectory. Means its just not there as stateted. Zipping and further analyzing is skipped for all other paths as well.
Expected Behaviour: Erroneous path is just skipped proceeding with the other paths and error should be printed.