Remove unescessary log

This commit is contained in:
nymkappa
2022-05-18 15:01:24 +02:00
parent 9955c5d009
commit 7377ff3c34
4 changed files with 6 additions and 4 deletions

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);