Skip to content

Commit

Permalink
Merge pull request #7094 from IMAM9AIS/master
Browse files Browse the repository at this point in the history
Handling error during selecting a kernel
  • Loading branch information
blink1073 committed Aug 27, 2019
2 parents 99dd8c7 + 78f46b5 commit 3e4351b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/apputils/src/clientsession.tsx
Expand Up @@ -585,7 +585,10 @@ export class ClientSession implements IClientSession {
}
let session = this._session;
if (session && session.status !== 'dead') {
return session.changeKernel(options);
return session.changeKernel(options).catch(err => {
void this._handleSessionError(err);
return Promise.reject(err);
});
} else {
return this._startSession(options);
}
Expand Down

0 comments on commit 3e4351b

Please sign in to comment.