Skip to content

Commit b767fc6

Browse files
donaldpipowitchjooohhn
authored andcommitted
fixes #142
1 parent 7f8631e commit b767fc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/amplitude-client.js

+3
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,9 @@ AmplitudeClient.prototype._logEvent = function _logEvent(
13581358
return eventId;
13591359
} catch (e) {
13601360
utils.log.error(e);
1361+
if (type(callback) === 'function') {
1362+
callback(0, 'No request sent', {reason: 'Request failed (e.g. it was blocked).'});
1363+
}
13611364
}
13621365
};
13631366

0 commit comments

Comments
 (0)