File tree Expand file tree Collapse file tree 2 files changed +409
-27
lines changed
Expand file tree Collapse file tree 2 files changed +409
-27
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,9 @@ export class InstanceController {
404404 const stateConn = await this . connectionState ( { instanceName } ) ;
405405
406406 if ( stateConn . state === 'close' ) {
407- throw new BadRequestException ( 'Instance already logged out' ) ;
407+ throw new BadRequestException (
408+ 'The "' + instanceName + '" instance is not connected' ,
409+ ) ;
408410 }
409411
410412 try {
@@ -427,10 +429,9 @@ export class InstanceController {
427429 const stateConn = await this . connectionState ( { instanceName } ) ;
428430
429431 if ( stateConn . state === 'open' ) {
430- throw new BadRequestException ( [
431- 'Deletion failed' ,
432- 'The instance needs to be disconnected' ,
433- ] ) ;
432+ throw new BadRequestException (
433+ 'The "' + instanceName + '" instance needs to be disconnected' ,
434+ ) ;
434435 }
435436 try {
436437 if ( stateConn . state === 'connecting' ) {
You can’t perform that action at this time.
0 commit comments