fully implemented error handling for challenge 1

This commit is contained in:
Joaquin committed 2025-05-14 09:37:09 -07:00
1 parent 8166245ab1
commit 5e2ac94212
1 file changed
+9 -1
+9 -1
View File
@@ -74,5 +74,13 @@ async function getLatestExchange(position) {
}
function error(err) {
console.error("Geolocation error: ", err);
const data = {
data: {
message: "error"
}
}
console.log(data);
update(data);
}