Skip to content

Commit

Permalink
Merge pull request GEOLYTIX#1231 from KieronFerrey/location-get-warning
Browse files Browse the repository at this point in the history
add ID to location_get warning
  • Loading branch information
RobAndrewHurst authored Apr 29, 2024
2 parents 640777c + babb173 commit e4c222c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/location/decorate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function syncFields(fields) {

// Return if response is falsy or error.
if (!response || response instanceof Error) {
console.warn('No data returned from location_get request.')
console.warn('No data returned from location_get request using ID:', this.id)
return
}
// Check if the response is an array.
Expand Down
2 changes: 1 addition & 1 deletion lib/location/get.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function getInfoj(location) {

// Check if the response is empty.
if (!response || response instanceof Error) {
console.warn('No data returned from location_get request.')
console.warn('No data returned from location_get request using ID:', location.id)
return
}
// Check if the response is an array.
Expand Down

0 comments on commit e4c222c

Please sign in to comment.