feat: schema diff sql tools (#17116)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { HttpException } from '@nestjs/common';
|
||||
import { LoggingRepository } from 'src/repositories/logging.repository';
|
||||
import { TypeORMError } from 'typeorm';
|
||||
|
||||
export const logGlobalError = (logger: LoggingRepository, error: Error) => {
|
||||
if (error instanceof HttpException) {
|
||||
@@ -10,11 +9,6 @@ export const logGlobalError = (logger: LoggingRepository, error: Error) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (error instanceof TypeORMError) {
|
||||
logger.error(`Database error: ${error}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (error instanceof Error) {
|
||||
logger.error(`Unknown error: ${error}`, error?.stack);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user