summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/components')
-rw-r--r--app/components/Connect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js
index d759c994fd..1859fe485e 100644
--- a/app/components/Connect.js
+++ b/app/components/Connect.js
@@ -398,12 +398,12 @@ export default class Connect extends Component {
}
toLngLat(pos) {
- assert(pos.length === 2);
+ assert(pos.length === 2, 'wrong number of coordinates in position');
return [ pos[1], pos[0] ];
}
toLngLatBounds(bounds) {
- assert(bounds.length % 2 === 0);
+ assert(bounds.length % 2 === 0, 'wrong number of sides in bounds');
let result = [];
for(let i = 0; i < bounds.length; i += 2) {
result.push(bounds.slice(i, i + 2).reverse());