Skip to content

Commit

Permalink
Update ntt error copy text (wormhole-foundation#2174)
Browse files Browse the repository at this point in the history
More descriptive error messages for NTT transfers

Co-authored-by: pongvin <anderle00@gmail.com>
  • Loading branch information
artursapek and aadam-10 authored Jun 7, 2024
1 parent 1c916fd commit d135664
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wormhole-connect/src/routes/ntt/errors.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
export class InboundQueuedTransferNotFoundError extends Error {
static MESSAGE = 'Inbound queued transfer not found';
static MESSAGE = 'Enqueued transfer not found.';
constructor() {
super(InboundQueuedTransferNotFoundError.MESSAGE);
}
}

export class InboundQueuedTransferStillQueuedError extends Error {
static MESSAGE = 'Inbound queued transfer still queued';
static MESSAGE = 'This transfer is still enqueued. Please try again later.';
constructor() {
super(InboundQueuedTransferStillQueuedError.MESSAGE);
}
}

export class NotEnoughCapacityError extends Error {
static MESSAGE = 'Not enough capacity';
static MESSAGE = 'The transfer limit is currently exceeded for this token. Please try again later.';
constructor() {
super(NotEnoughCapacityError.MESSAGE);
}
}

export class ContractIsPausedError extends Error {
static MESSAGE = 'Contract is paused';
static MESSAGE = 'NTT for this token is currently paused on the source chain.';
constructor() {
super(ContractIsPausedError.MESSAGE);
}
}

export class DestinationContractIsPausedError extends Error {
static MESSAGE = 'Destination contract is paused';
static MESSAGE = 'NTT for this token is currently paused on the destination chain.';
constructor() {
super(DestinationContractIsPausedError.MESSAGE);
}
Expand Down

0 comments on commit d135664

Please sign in to comment.