mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 16:47:55 +00:00
fixed automation dto
This commit is contained in:
@@ -157,7 +157,7 @@ export class SceneService {
|
||||
);
|
||||
} else {
|
||||
throw new HttpException(
|
||||
'An Internal error has been occured',
|
||||
`An Internal error has been occured ${err}`,
|
||||
HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
);
|
||||
}
|
||||
@@ -178,7 +178,7 @@ export class SceneService {
|
||||
|
||||
if (!scenesData.length) {
|
||||
throw new HttpException(
|
||||
`No scenes found for space UUID ${spaceUuid}`,
|
||||
`No scenes found for space UUID ${spaceUuid} with showInHomePage ${showInHomePage} `,
|
||||
HttpStatus.NOT_FOUND,
|
||||
);
|
||||
}
|
||||
@@ -199,7 +199,7 @@ export class SceneService {
|
||||
err.message,
|
||||
);
|
||||
|
||||
if (err instanceof BadRequestException) {
|
||||
if (err instanceof HttpException) {
|
||||
throw err;
|
||||
} else {
|
||||
throw new HttpException(
|
||||
|
||||
Reference in New Issue
Block a user