> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function error

Module: `std::meta`

```rust
pub comptime fn error<let N: u32, T, let N2: u32, T2>(
    _msg: fmtstr<N, T>,
    _secondary: Option<fmtstr<N2, T2>>,
    _location: Location,
)
```

Issues an error diagnostic at the given location with the given primary message and an optional secondary message. Unlike a comptime panic, current execution will continue allowing possibly multiple errors to be issued.
