From 47aea604df3d2949840b7f8fcb7750dd2bfb20a4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 3 May 2018 10:29:43 +0200 Subject: [PATCH] fix error message :bug: --- format/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.') }