Skip to content

Commit

Permalink
fixes #142
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldpipowitch authored and jooohhn committed Jan 7, 2021
1 parent 7f8631e commit b767fc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,9 @@ AmplitudeClient.prototype._logEvent = function _logEvent(
return eventId;
} catch (e) {
utils.log.error(e);
if (type(callback) === 'function') {
callback(0, 'No request sent', {reason: 'Request failed (e.g. it was blocked).'});
}
}
};

Expand Down

0 comments on commit b767fc6

Please sign in to comment.