Fix for plugin failures showing up as platform failures
Summary: This got broken during TS migration. Plugin failures were being logged as platform failures, and showing up in the wrong graphs. Reviewed By: passy Differential Revision: D18059046 fbshipit-source-id: 8209a0e852f62e221bf64cb5091115e3cac09fd9
This commit is contained in:
committed by
Facebook Github Bot
parent
a77064ad84
commit
d350e1b339
@@ -73,11 +73,11 @@ export function reportPluginFailures<T>(
|
||||
},
|
||||
rejectionReason => {
|
||||
if (rejectionReason instanceof CancelledPromiseError) {
|
||||
logPlatformSuccessRate(name, {
|
||||
logPluginSuccessRate(name, plugin, {
|
||||
kind: 'cancelled',
|
||||
});
|
||||
} else {
|
||||
logPlatformSuccessRate(name, {
|
||||
logPluginSuccessRate(name, plugin, {
|
||||
kind: 'failure',
|
||||
supportedOperation: !(rejectionReason instanceof UnsupportedError),
|
||||
error: rejectionReason,
|
||||
|
||||
Reference in New Issue
Block a user