Skip to content

Commit 4631b83

Browse files
committed
Check status on copy to pod also.
1 parent 739dce1 commit 4631b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export class Cp {
8787
errStream,
8888
readStream,
8989
false,
90-
async () => {
91-
if (errStream.size()) {
90+
async ({status}) => {
91+
if (status == 'Failure' || errStream.size()) {
9292
throw new Error(`Error from cpToPod - details: \n ${errStream.getContentsAsString()}`);
9393
}
9494
},

0 commit comments

Comments
 (0)