Stop build at first error

i’m using The Unreal Build Tools to build the engine and my game and i’d like it to stop the compilation at first error encountered. I tried setting bStopCompilationAfterErrors in the configuration but it’s still not working properly. Is there another way to solve this issue?