Skip to content

Commit bb4a175

Browse files
committed
Include sub id in PayPro cancellation errors
1 parent 94ec00e commit bb4a175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/paypro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export async function cancelSubscription(subscriptionId: string | number) {
314314
response.headers,
315315
await response.text().catch(() => '')
316316
);
317-
throw new Error(`Unexpected ${response.status} during PayPro cancellation`);
317+
throw new Error(`Unexpected ${response.status} during PayPro cancellation for sub id ${subscriptionId}`);
318318
}
319319

320320
const responseBody = await response.json();

0 commit comments

Comments
 (0)