File tree Expand file tree Collapse file tree
backend/src/entities/table/use-cases Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import * as csv from 'csv';
1515import { isObjectEmpty } from '../../../helpers/is-object-empty.js' ;
1616import { FilteringFieldsDs } from '../table-datastructures.js' ;
1717import { NonAvailableInFreePlanException } from '../../../exceptions/custom-exceptions/non-available-in-free-plan-exception.js' ;
18+ import { slackPostMessage } from '../../../helpers/index.js' ;
1819
1920@Injectable ( )
2021export class ExportCSVFromTableUseCase
@@ -115,9 +116,17 @@ export class ExportCSVFromTableUseCase
115116 if ( error instanceof HttpException ) {
116117 throw error ;
117118 }
119+ // todo: temporary debug log
120+ await slackPostMessage ( `
121+ CSV Export Failed with error: ${ error . message } \n
122+ Connection type: ${ connection . type } \n
123+ SSH Option: ${ connection . ssh } \n
124+ SSL Option: ${ connection . ssl } \n
125+ ` ) ;
118126 throw new HttpException (
119127 {
120128 message : Messages . CSV_EXPORT_FAILED ,
129+ originalMessage : error . message ,
121130 } ,
122131 HttpStatus . INTERNAL_SERVER_ERROR ,
123132 ) ;
You can’t perform that action at this time.
0 commit comments