fully implemented error handling for challenge 1
This commit is contained in:
1 parent
8166245ab1
commit
5e2ac94212
1 file changed
+9
-1
@@ -74,5 +74,13 @@ async function getLatestExchange(position) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function error(err) {
|
function error(err) {
|
||||||
console.error("Geolocation error: ", err);
|
const data = {
|
||||||
|
data: {
|
||||||
|
message: "error"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
update(data);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user