From e01bfc7db296916eb0ea7b04b381b35e5489c513 Mon Sep 17 00:00:00 2001 From: Andrew Melnick Date: Fri, 25 Nov 2022 14:42:42 -0700 Subject: [PATCH] Report metric label errors to user --- src/datasource.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datasource.ts b/src/datasource.ts index 586ebd1..d8b8908 100644 --- a/src/datasource.ts +++ b/src/datasource.ts @@ -58,6 +58,9 @@ export class DataSource extends DataSourceWithBackend { + if (rsp.error) { + throw new Error(rsp.error.message); + } if (rsp.data?.length) { return frameToMetricFindValue(rsp.data[0]); }