From babb173e7cfd0448e3d05777e72ea32b5031b439 Mon Sep 17 00:00:00 2001 From: KieronFerrey Date: Fri, 26 Apr 2024 13:56:17 +0100 Subject: [PATCH] add ID to location_get warning --- lib/location/decorate.mjs | 2 +- lib/location/get.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/location/decorate.mjs b/lib/location/decorate.mjs index a3ff23a1c..4716919af 100644 --- a/lib/location/decorate.mjs +++ b/lib/location/decorate.mjs @@ -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. diff --git a/lib/location/get.mjs b/lib/location/get.mjs index efa2717b9..86b061b2b 100644 --- a/lib/location/get.mjs +++ b/lib/location/get.mjs @@ -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.