Skip to content

Commit 86c5c42

Browse files
adamrefaeyCopilot
andauthored
Update backend/src/reports/reports.service.ts
Co-authored-by: Copilot <[email protected]>
1 parent b086d43 commit 86c5c42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/reports/reports.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ export class ReportsService {
496496
}
497497

498498
throw new InternalServerErrorException(
499-
`Failed to update report with ID ${report.id} ${
500-
error instanceof Error ? error.message : ''
499+
`Failed to update report with ID ${report.id}${
500+
error instanceof Error && error.message ? ` ${error.message}` : ''
501501
}`,
502502
);
503503
}

0 commit comments

Comments
 (0)