mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:23:00 +08:00
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
Block a user