diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts
index b2e80e6b82952b17f5a800121af18a85d860dc76..a71478e49cfcbc9db6e22464378e94210fe42e7e 100644
--- a/src/app/home/home.component.ts
+++ b/src/app/home/home.component.ts
@@ -135,7 +135,9 @@ export class HomeComponent implements OnInit {
       (location) => {
         this.currentLocation = location;
       },
-      (err) => error(err)
+      (err) => {
+        throw new Error(err);
+      }
     );
   }