JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: BinaryBuilder returns 0 (success) on failure

Open dubajj opened this issue 1 year ago • 1 comments

Detailed steps on how to reproduce the bug

  1. use a non-existent source directory with BinaryBuilder
  2. Note the output Source directory doesn't exist: ...
  3. Note the return value from the executable is 0 aka "success"

This is true for all failure cases in BinaryBuilder.

What is the expected behaviour?

An executable failing should return a non-zero value to the OS

Operating systems

Other

What versions of the operating systems?

Windows MacOS Linux

Architectures

Other, 64-bit

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

dubajj avatar Apr 03 '24 15:04 dubajj

As a bonus, it would be nice to use cerr instead of cout for error printing.

dubajj avatar Apr 03 '24 15:04 dubajj