Skip to main content

VERIFY_FAILED_EXIT_CODE

Constant VERIFY_FAILED_EXIT_CODE 

Source
pub const VERIFY_FAILED_EXIT_CODE: i32 = 3;
Expand description

Exit code of migrate --verify when at least one applied migration’s post-condition is a mismatch or its check errored. Distinct from 1 (a migration RUN failed) so a caller can tell “your data is inconsistent” from “the migrate command itself broke”, and from 2, which clap uses for a CLI usage error (a typoed flag must not read as a data finding — reagent P2 on #3058). See docs/exe-return-codes.md.