From e6f57c0eede40a691dc0cb2055b26df3ff06bb28 Mon Sep 17 00:00:00 2001 From: benesjan Date: Wed, 23 Aug 2023 13:31:07 +0000 Subject: [PATCH] refactor: better error codes --- .../aztec-rpc/src/aztec_rpc_server/aztec_rpc_server.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yarn-project/aztec-rpc/src/aztec_rpc_server/aztec_rpc_server.ts b/yarn-project/aztec-rpc/src/aztec_rpc_server/aztec_rpc_server.ts index d4fb2b540d0..b5aeb0053ca 100644 --- a/yarn-project/aztec-rpc/src/aztec_rpc_server/aztec_rpc_server.ts +++ b/yarn-project/aztec-rpc/src/aztec_rpc_server/aztec_rpc_server.ts @@ -99,9 +99,7 @@ export class AztecRPCServer implements AztecRPC { this.synchroniser.addAccount(pubKey, this.keyStore); this.log.info(`Added account: ${completeAddress.toReadableString()}`); } else { - this.log.info( - `Skipped adding account "${completeAddress.toReadableString()}" because he/she was registered before.`, - ); + this.log.info(`Account "${completeAddress.toReadableString()}" already registered.`); } } @@ -125,7 +123,7 @@ export class AztecRPCServer implements AztecRPC { if (wasAdded) { this.log.info(`Added recipient: ${recipient.toReadableString()}`); } else { - this.log.info(`Skipped adding recipient "${recipient.toReadableString()}" because he/she was registered before.`); + this.log.info(`Recipient "${recipient.toReadableString()}" already registered.`); } }