Skip to main content

sqry_cli/commands/
error.rs

1//! Error formatting and exit handling for CLI
2
3#[cfg(test)]
4mod tests {
5    use sqry_core::query::error::{LexError, QueryError};
6
7    // Test exit code mapping for query errors
8    #[test]
9    fn test_exit_code_mapping() {
10        let lex_err = QueryError::Lex(LexError::UnexpectedEof);
11        assert_eq!(lex_err.exit_code(), 2);
12    }
13}