push
github
221 of 316 branches covered (69.94%)
Branch coverage included in aggregate %.
598 of 661 new or added lines in 62 files covered. (90.47%)
1 existing line in 1 file now uncovered.1116 of 1237 relevant lines covered (90.22%)
1211.08 hits per line
|
|
import { NcaConfig } from "../config/nca-config";
|
161✔ |
| 2 |
|
|
|
|
export class ErrorHandler { |
161✔ |
| 4 |
|
|
| 5 |
static run(fun: () => void) { |
|
|
|
try {
|
161✔ |
|
|
fun(); |
161✔ |
| 8 |
} catch (e) {
|
|
|
NEW
|
if (e instanceof Error) {
|
|
|
NEW
|
console.error(e.message); |
× |
|
NEW
|
if (NcaConfig.isDebugEnabled()) {
|
|
|
NEW
|
console.error(e); |
× |
| 13 |
} |
|
| 14 |
} else {
|
|
|
NEW
|
console.error(e); |
× |
| 16 |
} |
|
| 17 |
} |
|
| 18 |
} |
|
| 19 |
} |