Skip to content

Commit 4a6ceb1

Browse files
committed
Profiles: Use error message from the API for regdate
1 parent cb00fdc commit 4a6ceb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bot-modules/profiles/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ exports.setup = function (App) {
253253
for (let cb of callbacks) {
254254
try {
255255
// eslint-disable-next-line callback-return
256-
cb(null, error);
256+
cb(null, data.length > 100 ? error : new Error(data));
257257
} catch (ex) {
258258
App.reportCrash(ex);
259259
}

0 commit comments

Comments
 (0)