mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
fix error parsing 🐛
This commit is contained in:
parent
e7efcb5405
commit
b809281d0e
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ const request = (profile, userAgent, opt, data) => {
|
|||
.then((b) => {
|
||||
if (DEBUG) console.error(JSON.stringify(b))
|
||||
|
||||
if (b.err) {
|
||||
if (b.err && b.err !== 'OK') {
|
||||
err.message = b.err
|
||||
throw err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue