Adding missing error cause messages.

This commit is contained in:
softsimon
2020-10-28 11:00:48 +07:00
parent 35186c517f
commit df28347b5e
8 changed files with 14 additions and 13 deletions

View File

@@ -234,7 +234,7 @@ class Statistics {
connection.release();
return result.insertId;
} catch (e) {
logger.err('$create() error' + e);
logger.err('$create() error' + e.message || e);
}
}
@@ -292,7 +292,7 @@ class Statistics {
return this.mapStatisticToOptimizedStatistic([rows[0]])[0];
}
} catch (e) {
logger.err('$list2H() error' + e);
logger.err('$list2H() error' + e.message || e);
}
}
@@ -304,7 +304,7 @@ class Statistics {
connection.release();
return this.mapStatisticToOptimizedStatistic(rows);
} catch (e) {
logger.err('$list2H() error' + e);
logger.err('$list2H() error' + e.message || e);
return [];
}
}
@@ -317,6 +317,7 @@ class Statistics {
connection.release();
return this.mapStatisticToOptimizedStatistic(rows);
} catch (e) {
logger.err('$list24h() error' + e.message || e);
return [];
}
}