Method
tryValidateOrExit
(
config: VercelConfig,
validate: (c: VercelConfig) => string | null
)
Source from the content-addressed store, hash-verified
| 899 | } |
| 900 | |
| 901 | async tryValidateOrExit( |
| 902 | config: VercelConfig, |
| 903 | validate: (c: VercelConfig) => string | null |
| 904 | ): Promise<void> { |
| 905 | const message = validate(config); |
| 906 | |
| 907 | if (message) { |
| 908 | output.error(message); |
| 909 | await this.exit(1); |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | async validateVercelConfig(config: VercelConfig): Promise<void> { |
| 914 | if (config.version === 1) { |
Callers
nothing calls this directly
Tested by
no test coverage detected