graphlab-fr / cosma

Cosma is a document graph visualization tool. It modelizes interlinked Markdown files and renders them as an interactive network in a web interface.
https://cosma.arthurperret.fr
GNU General Public License v3.0
125 stars 4 forks source link

[Bug] Cosma deosn't return a non null value when it detects errors or warnings #108

Open GuillaumeHM opened 7 months ago

GuillaumeHM commented 7 months ago

What version of Cosma are you using?

2.4.0

On which operating system(s) did you observe the bug?

What version of the operating system are you on?

debian bookworm

Actions leading to the bug

cosma modelize

Bug description

$ cosma modelize
[Cosma v.2.4.0]  /.../config.yml
Building cosmoscope… (source type: directory)
Report: 2 errors and 7 warnings
/.../cosma-cli/logs/20240323082515.html
Cosmoscope generated (23 records)
$ echo $?
0

When modelizing, Cosma prints errors and generates a descriptive log but the return value is still 0 which means "Everythin was ok" in shell world.

Additional information

Negative return values mean an error occured and positive ones mean a warning occured.