File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
packages/server/src/services Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -238,20 +238,12 @@ export const deployApplication = async ({
238238 await updateDeploymentStatus ( deployment . deploymentId , "error" ) ;
239239 await updateApplicationStatus ( applicationId , "error" ) ;
240240
241- const errorMessage =
242- error instanceof Error
243- ? error . message
244- : String ( error ) || "Error building" ;
245- // Truncate and sanitize error message for notifications
246- const sanitizedErrorMessage = errorMessage
247- . replace ( / g h s _ [ a - z A - Z 0 - 9 ] + / g, "ghs_***" ) // Hide GitHub tokens
248- . substring ( 0 , 1500 ) ; // Truncate to avoid notification limits
249-
250241 await sendBuildErrorNotifications ( {
251242 projectName : application . project . name ,
252243 applicationName : application . name ,
253244 applicationType : "application" ,
254- errorMessage : sanitizedErrorMessage ,
245+ // @ts -ignore
246+ errorMessage : error ?. message || "Error building" ,
255247 buildLink,
256248 organizationId : application . project . organizationId ,
257249 } ) ;
You can’t perform that action at this time.
0 commit comments