Remove unescessary log

This commit is contained in:
nymkappa committed 2022-05-18 15:01:24 +02:00
1 parent 4dd75cd24e
commit f402bfb097
4 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -7,6 +7,7 @@ import logger from '../logger';
import blocks from './blocks';
import { Common } from './common';
import loadingIndicators from './loading-indicators';
import { escape } from 'mysql2';
class Mining {
hashrateIndexingStarted = false;
@@ -110,7 +111,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`);
throw new Error('This mining pool does not exist ' + escape(slug));
}
const blockCount: number = await BlocksRepository.$blockCount(pool.id);