diff --git a/format/location.js b/format/location.js index aa7d19d1..39f0a990 100644 --- a/format/location.js +++ b/format/location.js @@ -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.') }