From 174ed8074978a51e50cef716302e87ad951b6838 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 19 Jan 2021 15:02:08 +0100 Subject: [PATCH] =?UTF-8?q?remarks():=20support=20missing=20res.msgL[]=20?= =?UTF-8?q?=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b3c3bf12..98bcf61a 100644 --- a/index.js +++ b/index.js @@ -501,7 +501,8 @@ const createClient = (profile, userAgent, opt = {}) => { } = await profile.request({profile, opt}, userAgent, req) const ctx = {profile, opt, common, res} - return res.msgL.map(w => profile.parseWarning(ctx, w)) + return (res.msgL || []) + .map(w => profile.parseWarning(ctx, w)) } const lines = async (query, opt = {}) => {