File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- // This demonstrates how process errors look when `log-process-errors` is used,
2+ // Demonstrates how process errors look when `log-process-errors` is used,
33// in JavaScript.
44// This file can be directly run:
55// - first install `log-process-errors`
@@ -15,16 +15,16 @@ require('./utils')
1515
1616const logProcessErrors = require ( 'log-process-errors' )
1717
18+ // Initialization
19+ logProcessErrors ( )
20+
1821const {
1922 uncaughtException,
2023 unhandledRejection,
2124 warning,
2225 multipleResolves,
2326} = require ( './errors' )
2427
25- // Initialization
26- logProcessErrors ( )
27-
2828// Emit different types of process errors.
2929uncaughtException ( )
3030unhandledRejection ( )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This demonstrates how process errors look when `log-process-errors` is used,
2+ # Demonstrates how process errors look when `log-process-errors` is used,
33# in the terminal (Bash).
44# This file can be directly run:
55# - first install `log-process-errors`
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- // This demonstrates how process errors look when `log-process-errors` is not
2+ // Demonstrates how process errors look when `log-process-errors` is not
33// used, in JavaScript.
44// This file can be directly run:
55// - first install `log-process-errors`
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # This demonstrates how process errors look when `log-process-errors` is not
2+ # Demonstrates how process errors look when `log-process-errors` is not
33# used, in the terminal (Bash).
44# This file can be directly run:
55# - first install `log-process-errors`
You can’t perform that action at this time.
0 commit comments