1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-24 11:22:19 +03:00
Ghost/ghost/admin/app/errors/member-import-error.js
Nazar Gargol 39c4fec9ea Improved validation process for members CSV import
no issue

- A new validation stage has been introduced as a second step after CSV file has been dropped. It is meant to catch any obvious validation errors and output detailed statistics about
- These improvements also improve sampling logic which increases sample size to 30 non-empty cells which are used to validate stripe_customer_ids when there's such need.
- New sampling logic also introduces improved automatic field type detection which allows to better map email and stripe_customer_id fields to CSV columns
2020-07-07 00:28:30 +12:00

9 lines
239 B
JavaScript

export default class EmailFailedError extends Error {
constructor({message, context, type = 'error'}) {
super(message);
this.name = 'MemberImportError';
this.context = context;
this.type = type;
}
}