yrahul3910 / programmable-resumes

MIT License
0 stars 0 forks source link

Add debug mode #12

Closed nidhiyedida closed 12 months ago

nidhiyedida commented 1 year ago

Currently, progres will silently fail with no indication of what went wrong. A debug mode is crucial for end-users.

yrahul3910 commented 1 year ago

Agreed. Marking this p1.

yrahul3910 commented 1 year ago

This might be something to implement in pysh first. While pysh does print the error if something fails (see example below), we don't know what processes have run (especially in the case where we use && or what their results were.

print(str`cat does_not_exist.txt`)
yrahul3910 commented 12 months ago

pysh now has this functionality! eb0cfdb adds the EXIT_CODE and STDERR variables that we can query :)