Schema compile error does not cause build to fail
vchekan opened this issue · comments
Vadim Chekan commented
Describe the bug
When there is an error in schema, msbuild by default does not check error code of Exec command and as result, compiler will fail with semi-random error, which makes it hard to troubleshoot.
To Reproduce
Delete .fs file.
Make intentional syntax error in .proto file.
Compile and observe error saying that .fs file is missing.
Expected behavior
Error should should indicate that failure happen in schema compilation and not in .fs file compilation.
Enrico Sada commented
can repro
Enrico Sada commented
fixed and added tests