Log bundling errors to scuba

Reviewed By: davidaurelio

Differential Revision: D6519623

fbshipit-source-id: a8e54639a041e300bb98d8a9744490fdeae17d1a
This commit is contained in:
Rafael Oleza 2017-12-09 13:19:24 -08:00 committed by Facebook Github Bot
parent f347e4ff47
commit c5e83dd86a
1 changed files with 7 additions and 0 deletions

View File

@ -739,6 +739,13 @@ class Server {
});
res.end(JSON.stringify(formattedError));
this._reporter.update({error, type: 'bundling_error'});
log({
action_name: 'bundling_error',
error_type: formattedError.type,
log_entry_label: 'bundling_error',
stack: formattedError.message,
});
}
_getOptionsFromUrl(reqUrl: string): BundleOptions & DeltaBundlerOptions {