mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-17 03:40:44 +03:00
Updated documentation to reflect new exit code behavior.
This commit is contained in:
parent
78d1a7176f
commit
87030c7a06
@ -25,7 +25,7 @@ Pyright can be run as either a VS Code extension or as a node-based command-line
|
||||
|
||||
| Exit Code | Meaning |
|
||||
| :---------- | :--------------------------------------------------------------- |
|
||||
| 0 | No errors or warnings reported |
|
||||
| 1 | One or more errors or warnings reported |
|
||||
| 0 | No errors reported |
|
||||
| 1 | One or more errors reported |
|
||||
| 2 | Fatal error occurred with no errors or warnings reported |
|
||||
|
||||
|
@ -25,8 +25,8 @@ import { combinePaths, normalizePath } from './common/pathUtils';
|
||||
const toolName = 'pyright';
|
||||
|
||||
enum ExitStatus {
|
||||
Success = 0,
|
||||
DiagnosticsReported = 1,
|
||||
NoErrors = 0,
|
||||
ErrorsReported = 1,
|
||||
FatalError = 2
|
||||
}
|
||||
|
||||
@ -127,8 +127,8 @@ function processArgs() {
|
||||
if (!watch) {
|
||||
process.exit(
|
||||
errorCount > 0 ?
|
||||
ExitStatus.DiagnosticsReported :
|
||||
ExitStatus.Success);
|
||||
ExitStatus.ErrorsReported :
|
||||
ExitStatus.NoErrors);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user