diff --git a/aries_cloudagent/ledger/base.py b/aries_cloudagent/ledger/base.py index 8d39aa0a23..f261147a1a 100644 --- a/aries_cloudagent/ledger/base.py +++ b/aries_cloudagent/ledger/base.py @@ -303,7 +303,8 @@ async def create_and_send_schema( else: if await self.is_ledger_read_only(): raise LedgerError( - "Error cannot write schema when ledger is in read only mode" + "Error cannot write schema when ledger is in read only mode, " + "or TAA is required and not accepted" ) try: @@ -497,7 +498,8 @@ async def create_and_send_credential_definition( if await self.is_ledger_read_only(): raise LedgerError( - "Error cannot write cred def when ledger is in read only mode" + "Error cannot write cred def when ledger is in read only mode, " + "or TAA is required and not accepted" ) cred_def_req = await self._create_credential_definition_request( diff --git a/aries_cloudagent/ledger/indy.py b/aries_cloudagent/ledger/indy.py index e21178f01f..436923951f 100644 --- a/aries_cloudagent/ledger/indy.py +++ b/aries_cloudagent/ledger/indy.py @@ -766,7 +766,8 @@ async def update_endpoint_for_did( if exist_endpoint_of_type != endpoint: if await self.is_ledger_read_only(): raise LedgerError( - "Error cannot update endpoint when ledger is in read only mode" + "Error cannot update endpoint when ledger is in read only mode, " + "or TAA is required and not accepted" ) nym = self.did_to_nym(did) @@ -817,7 +818,8 @@ async def register_nym( """ if await self.is_ledger_read_only(): raise LedgerError( - "Error cannot register nym when ledger is in read only mode" + "Error cannot register nym when ledger is in read only mode, " + "or TAA is required and not accepted" ) public_info = await self.get_wallet_public_did()