[X] I searched open requests and couldn't find a duplicate
What is the idea?
Catch and forward the error message output by makensis.exe to facilitate debugging.
Why is this needed?
When makensis.exe fails, the error message is along the lines of
subprocess.CalledProcessError: Command '['C:\\Users\\runneradmin\\miniconda3\\NSIS\\makensis.exe', '/V2', 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpe83oee6u\\main.nsi']' returned non-zero exit status 1.
This does not help developers understand why their build failed. Running makensis.exe directly, however, will yield an error message.
However, running makensis.exe directly is not always convenient to do (on a CI, for example), and should not be necessary to do in the first place. Outputting the error message via constructor will facilitate debugging.
What should happen?
constructor should forward the error message provided by makensis.exe.
Checklist
What is the idea?
Catch and forward the error message output by
makensis.exe
to facilitate debugging.Why is this needed?
When
makensis.exe
fails, the error message is along the lines ofThis does not help developers understand why their build failed. Running
makensis.exe
directly, however, will yield an error message.However, running
makensis.exe
directly is not always convenient to do (on a CI, for example), and should not be necessary to do in the first place. Outputting the error message viaconstructor
will facilitate debugging.What should happen?
constructor
should forward the error message provided bymakensis.exe
.Additional Context
No response