mirror of https://github.com/ppy/osu
Correctly handle nvika/inspectcode return codes
This commit is contained in:
parent
caa2bdf012
commit
1dad152363
|
@ -46,7 +46,9 @@ Task("InspectCode")
|
|||
OutputFile = "inspectcodereport.xml",
|
||||
});
|
||||
|
||||
StartProcess(nVikaToolPath, @"parsereport ""inspectcodereport.xml"" --treatwarningsaserrors");
|
||||
int returnCode = StartProcess(nVikaToolPath, $@"parsereport ""{inspectcodereport}"" --treatwarningsaserrors");
|
||||
if (returnCode != 0)
|
||||
throw new Exception($"inspectcode failed with return code {returnCode}");
|
||||
});
|
||||
|
||||
Task("CodeFileSanity")
|
||||
|
|
Loading…
Reference in New Issue