Skip to content

Commit bc9c0c7

Browse files
authored
Merge pull request kubernetes-client#319 from stephentriphahn/318/watch-error-done-paramater
Call watcher's done callback with correct statusMessage field on request error
2 parents ad56a41 + 15bfd04 commit bc9c0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class Watch {
6868
if (error) {
6969
done(error);
7070
} else if (response && response.statusCode !== 200) {
71-
done(new Error(response.StatusMessage));
71+
done(new Error(response.statusMessage));
7272
} else {
7373
done(null);
7474
}

0 commit comments

Comments
 (0)