LPGhatguy / aftman

Aftman, the prodigal sequel to Foreman
MIT License
162 stars 19 forks source link

Aftman does not pass-through the tool's exit code #42

Closed JohnnyMorganz closed 1 year ago

JohnnyMorganz commented 1 year ago

When using a tool managed using aftman, the exit code of the tool is not passed through (which causes problems such as https://github.com/rojo-rbx/rojo/issues/651) It is however correctly handled in foreman

PS C:\Users\Development\Documents\rojo> C:\Users\Development\.aftman\bin\rojo.exe sourcemap
[ERROR rojo] Rojo project referred to a file using $path that could not be turned into a Roblox Instance by Rojo.
        Check that the file exists and is a file type known by Rojo.

        Project path: C:\Users\Development\Documents\rojo\default.project.json
        File $path: src/shared
PS C:\Users\Development\Documents\rojo> $LASTEXITCODE
0
PS C:\Users\Development\Documents\rojo> C:\Users\Development\.foreman\bin\rojo.exe sourcemap
[ERROR rojo] Rojo project referred to a file using $path that could not be turned into a Roblox Instance by Rojo.
        Check that the file exists and is a file type known by Rojo.

        Project path: C:\Users\Development\Documents\rojo\default.project.json
        File $path: src/shared
PS C:\Users\Development\Documents\rojo> $LASTEXITCODE
1
JohnnyMorganz commented 1 year ago

Looks like I was on an old version, and this is already fixed in https://github.com/LPGhatguy/aftman/pull/25