Skip to content

Commit

Permalink
Merge pull request #10 from mfal/patch-1
Browse files Browse the repository at this point in the history
Don't reject on status responses with code 404
  • Loading branch information
da-wolf authored May 4, 2018
2 parents 14b560c + ee2095c commit 8c59a77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ export class KubernetesRESTClient implements IKubernetesRESTClient {
}

if (isStatus(body) && body.status === "Failure") {
if(body.code === 404) {
res(undefined);
return;
}
rej(new Error(body.message));
return;
}
Expand Down

0 comments on commit 8c59a77

Please sign in to comment.