Fix error handling in acceleration data polling

This commit is contained in:
Mononaut committed 2024-02-02 15:31:10 +00:00
1 parent 788a8693ee
commit 0bf0d79ee4
6 files changed
+20 -18

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ class Mining {
public async $getPoolStat(slug: string): Promise<object> {
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 blockCount: number = await BlocksRepository.$blockCount(pool.id);