Skip to content

Commit

Permalink
added error when not found meta tag (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
noneandundefined committed Feb 17, 2025
1 parent 10493ab commit 76ce567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/monitoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class MonitoringSerivce {
private isURL(): string {
if (this.metaURL) return this.metaURL.content;

console.error("Meta tag 'monitoring-url' not found.");
return '';
throw new Error("Meta tag 'monitoring-url' not found.");
}

public async fetchMonitoringData(): Promise<MonitoringType | null> {
Expand Down

0 comments on commit 76ce567

Please sign in to comment.