mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
remarks(): support missing res.msgL[] 🐛
This commit is contained in:
parent
4950b1e4f9
commit
174ed80749
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -501,7 +501,8 @@ const createClient = (profile, userAgent, opt = {}) => {
|
||||||
} = await profile.request({profile, opt}, userAgent, req)
|
} = await profile.request({profile, opt}, userAgent, req)
|
||||||
|
|
||||||
const ctx = {profile, opt, common, res}
|
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 = {}) => {
|
const lines = async (query, opt = {}) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue