Tim 4 anni fa
parent
commit
a4b19447ef
2 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 2
    0
      dist/index.js
  2. 2
    0
      src/index.ts

+ 2
- 0
dist/index.js Vedi File

@@ -54,7 +54,9 @@ export function start(option) {
54 54
                     stop();
55 55
                     break;
56 56
                 case Events.FAILED:
57
+                    reject(new Error('FAILED'));
57 58
                 case Events.CLOSED:
59
+                    reject(new Error('CLOSED'));
58 60
                     stop();
59 61
                     break;
60 62
                 case Events.ERROR:

+ 2
- 0
src/index.ts Vedi File

@@ -95,7 +95,9 @@ export function start(option: IOption): Promise<IResult> {
95 95
                     stop();
96 96
                     break;
97 97
                 case Events.FAILED:
98
+                    reject(new Error('FAILED'));
98 99
                 case Events.CLOSED:
100
+                    reject(new Error('CLOSED'));
99 101
                     stop();
100 102
                     break;
101 103
                 case Events.ERROR: