diff --git a/papaparse.js b/papaparse.js index d9fe406..b1e7580 100644 --- a/papaparse.js +++ b/papaparse.js @@ -21,6 +21,7 @@ worker: false, comments: false, complete: undefined, + error: undefined, download: false, chunk: undefined, keepEmptyRows: false @@ -1281,6 +1282,9 @@ if (typeof config.complete !== 'function') config.complete = DEFAULTS.complete; + if (typeof config.error !== 'function') + config.error = DEFAULTS.error; + if (typeof config.encoding !== 'string') config.encoding = DEFAULTS.encoding;