Skip to content

Commit 894cafc

Browse files
Fix error handling in GrafanaService -> search
1 parent 23c3af9 commit 894cafc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service/GrafanaService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,10 @@ class GrafanaService {
320320
try {
321321
const result = await this.client.get(url);
322322
return result;
323-
} catch {
323+
} catch (err) {
324324
let errorTitle = query ? 'Error while searching dashboards' : 'Error while listing dashboards';
325325
errorTitle += `, URL: ${url}`;
326-
this.logger.error(err, errorTitle);
326+
this.logger.error({ err, errorTitle });
327327
return null;
328328
}
329329
}

0 commit comments

Comments
 (0)