UNPKG

380 BJavaScriptView Raw
1import { global } from "../utilities/globals/index.js";
2import { ApolloErrorMessageHandler } from "../utilities/globals/invariantWrappers.js";
3/**
4 * Overrides the global "Error Message Handler" with a custom implementation.
5 */
6export function setErrorMessageHandler(handler) {
7 global[ApolloErrorMessageHandler] = handler;
8}
9//# sourceMappingURL=setErrorMessageHandler.js.map
\No newline at end of file