From d983a08c7dce8fcf7dece1e0d5aff920b26cbdbb Mon Sep 17 00:00:00 2001 From: Cat McGee Date: Tue, 28 Nov 2023 15:47:51 +0000 Subject: [PATCH] chore(docs): Links to Aztec docs from errors (#3423) Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: Tom French --- aztec_macros/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aztec_macros/src/lib.rs b/aztec_macros/src/lib.rs index f55feb9801e..6d3aa0d8b01 100644 --- a/aztec_macros/src/lib.rs +++ b/aztec_macros/src/lib.rs @@ -33,7 +33,6 @@ impl MacroProcessor for AztecMacro { #[derive(Debug, Clone)] pub enum AztecMacroError { - // TODO(benesjan): https://github.com/AztecProtocol/aztec-packages/issues/2905 AztecNotFound, AztecComputeNoteHashAndNullifierNotFound { span: Span }, } @@ -42,12 +41,12 @@ impl From for MacroError { fn from(err: AztecMacroError) -> Self { match err { AztecMacroError::AztecNotFound {} => MacroError { - primary_message: "Aztec dependency not found. Please add aztec as a dependency in your Cargo.toml".to_owned(), + primary_message: "Aztec dependency not found. Please add aztec as a dependency in your Cargo.toml. For more information go to https://docs.aztec.network/dev_docs/debugging/aztecnr-errors#aztec-dependency-not-found-please-add-aztec-as-a-dependency-in-your-nargotoml".to_owned(), secondary_message: None, span: None, }, AztecMacroError::AztecComputeNoteHashAndNullifierNotFound { span } => MacroError { - primary_message: "compute_note_hash_and_nullifier function not found. Define it in your contract.".to_owned(), + primary_message: "compute_note_hash_and_nullifier function not found. Define it in your contract. For more information go to https://docs.aztec.network/dev_docs/debugging/aztecnr-errors#compute_note_hash_and_nullifier-function-not-found-define-it-in-your-contract".to_owned(), secondary_message: None, span: Some(span), },