Fix error handling in acceleration data polling

This commit is contained in:
Mononaut
2024-01-31 18:38:56 +00:00
parent 788a8693ee
commit 0bf0d79ee4
6 changed files with 20 additions and 18 deletions

View File

@@ -478,7 +478,7 @@ class BlocksRepository {
public async $getBlocksByPool(slug: string, startHeight?: number): Promise<BlockExtended[]> {
const pool = await PoolsRepository.$getPool(slug);
if (!pool) {
throw new Error('This mining pool does not exist ' + escape(slug));
throw new Error('This mining pool does not exist');
}
const params: any[] = [];