remarks(): support missing res.msgL[] 🐛

This commit is contained in:
Jannis R 2021-01-19 15:02:08 +01:00
parent 4950b1e4f9
commit 174ed80749
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -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 = {}) => {