mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
fix error message 🐛
This commit is contained in:
parent
8ce89f0fe6
commit
47aea604df
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const formatLocation = (profile, l, name = 'location') => {
|
|||
if ('string' === typeof l.id) return profile.formatPoi(l)
|
||||
if ('string' === typeof l.address) return profile.formatAddress(l)
|
||||
if (!l.type) throw new Error(`missing ${name}.type`)
|
||||
throw new Error(`invalid ${name}type: ${l.type}`)
|
||||
throw new Error(`invalid ${name}.type: ${l.type}`)
|
||||
}
|
||||
throw new Error(name + ': valid station, address or poi required.')
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue