Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved: lat long regenration fail message (#49) #55

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/FacilityGeoPointModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export default defineComponent({
throw resp.data
}
} catch(err) {
showToast(translate("Failed to generate latitude and longitude."))
logger.error(err)
showToast(translate("Unable to find the latitude and longitude for the entered zip code."))
logger.error('Unable to find the latitude and longitude for the entered zip code.', err)
}
this.isGeneratingLatLong = false
},
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"Failed to fetch facility information": "Failed to fetch facility information",
"Failed to fetch shopify shops.": "Failed to fetch shopify shops.",
"Failed to find the facility locations": "Failed to find the facility locations",
"Failed to generate latitude and longitude.": "Failed to generate latitude and longitude.",
"Failed to make product store as primary.": "Failed to make product store as primary.",
"Failed to make product store primary.": "Failed to make product store primary.",
"Failed to regenerate latitude and longitude for the facility.": "Failed to regenerate latitude and longitude for the facility.",
Expand Down Expand Up @@ -239,6 +238,7 @@
"Timezone": "Timezone",
"Tuesday": "Tuesday",
"Type": "Type",
"Unable to find the latitude and longitude for the entered zip code.": "Unable to find the latitude and longitude for the entered zip code.",
"Unlimited": "Unlimited",
"Unlimited Capacity": "Unlimited Capacity",
"Unlimited capacity removes the fulfillment capacity limit entirely. To add a fulfillment capacity to this facility, use the custom option.": "Unlimited capacity removes the fulfillment capacity limit entirely. To add a fulfillment capacity to this facility, use the custom option.",
Expand Down
4 changes: 2 additions & 2 deletions src/views/AddFacilityAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ export default defineComponent({
throw resp.data
}
} catch (error) {
showToast(translate("Failed to generate latitude and longitude."))
logger.error("Failed to generate latitude and longitude.", error)
showToast(translate("Unable to find the latitude and longitude for the entered zip code."))
logger.error("Unable to find the latitude and longitude for the entered zip code.", error)
}
},
async updateState(event: CustomEvent) {
Expand Down
Loading