@getbags/cash 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/errors.js +6 -2
- package/package.json +1 -1
package/dist/errors.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { walletDepositsVisible } from './deposits-visible.js';
|
|
2
2
|
export const ERROR_REMEDIES = {
|
|
3
3
|
// Deposit advertising gated (SHIP-PRD T7); fund command still works when known.
|
|
4
|
+
// The wallet reserves up to the per-call cap before the real price is known, so
|
|
5
|
+
// this fires even when the balance comfortably covers the quote — a $0.45 wallet
|
|
6
|
+
// is refused a 1c call under a 50c cap. Lowering the ceiling shrinks the
|
|
7
|
+
// reservation, so offer that before telling anyone to top up.
|
|
4
8
|
INSUFFICIENT_BALANCE: walletDepositsVisible()
|
|
5
|
-
? 'balance
|
|
6
|
-
: 'balance
|
|
9
|
+
? 'balance is below the amount reserved for this call (up to the per-call cap, not the quoted price); retry with a lower --max-price-cents, run: bags fund, or redeem another invite code'
|
|
10
|
+
: 'balance is below the amount reserved for this call (up to the per-call cap, not the quoted price); retry with a lower --max-price-cents, or redeem another invite code',
|
|
7
11
|
INVITE_INVALID: 'invite code is invalid or already used; ask your host for a new one',
|
|
8
12
|
INVITE_EXPIRED: 'invite code has expired; ask your host for a new one',
|
|
9
13
|
URL_BLOCKED: 'URL blocked by SSRF protection; use a public https endpoint',
|