We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f76ee1 + 342738f commit 8769f6aCopy full SHA for 8769f6a
src/cp.ts
@@ -40,8 +40,9 @@ export class Cp {
40
errStream,
41
null,
42
false,
43
- async () => {
44
- if (errStream.size()) {
+ async ({ status }) => {
+ writerStream.close();
45
+ if (status === 'Failure' || errStream.size()) {
46
throw new Error(`Error from cpFromPod - details: \n ${errStream.getContentsAsString()}`);
47
}
48
await tar.x({
@@ -86,8 +87,8 @@ export class Cp {
86
87
88
readStream,
89
90
91
92
throw new Error(`Error from cpToPod - details: \n ${errStream.getContentsAsString()}`);
93
94
},
0 commit comments