From a0995c6fe758127d8eecd68df456d5853ac3ecaa Mon Sep 17 00:00:00 2001 From: meew0 Date: Thu, 31 Dec 2015 18:56:26 +0100 Subject: [PATCH] Add a short comment to constructErrorCallback --- src/Client/Client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Client/Client.js b/src/Client/Client.js index 1d9f04ca8..fa2e73961 100644 --- a/src/Client/Client.js +++ b/src/Client/Client.js @@ -4,6 +4,9 @@ import InternalClient from "./InternalClient"; import EventEmitter from "events"; import PMChannel from "../Structures/PMChannel"; +// This utility function creates an anonymous error handling wrapper function +// for a given callback. It is used to allow error handling inside the callback +// and using other means. function constructErrorCallback(callback) { return error => { callback(error);