Skip to content

Commit

Permalink
Merge pull request #55 from k2maan/improvements
Browse files Browse the repository at this point in the history
Improved: lat long regenration fail message (#49)
  • Loading branch information
ravilodhi authored Dec 1, 2023
2 parents 9ae9a92 + 666cb2b commit d177790
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit d177790

Please sign in to comment.