File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export class SandboxError extends Error {
2929 *
3030 * The [deadline_exceeded] error type is caused by exceeding the timeout for command execution, watch, etc.
3131 *
32- * The [unknown] error type is sometimes caused by the sandbox timeout when the request is not processed correctly .
32+ * It may also occur because the sandbox has reached the end of its lifecycle .
3333 */
3434export class TimeoutError extends SandboxError {
3535 constructor ( message : string , stackTrace ?: string ) {
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ export const connectCommand = new commander.Command('connect')
2424 process . exit ( 0 )
2525 } catch ( err : any ) {
2626 console . error ( err )
27+ const message =
28+ typeof err ?. message === 'string' ? err . message : String ( err )
29+ if ( / u n k n o w n [ _ ] e r r o r / i. test ( message ) ) {
30+ console . error (
31+ 'Connection closed, it might be because the sandbox has reached the end of its lifecycle.'
32+ )
33+ }
2734 process . exit ( 1 )
2835 }
2936 } )
You can’t perform that action at this time.
0 commit comments