constructor icon indicating copy to clipboard operation
constructor copied to clipboard

Output NSIS error messages

Open marcoesters opened this issue 9 months ago • 1 comments

Checklist

  • [X] I added a descriptive title
  • [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.

Additional Context

No response

marcoesters avatar May 15 '24 14:05 marcoesters