@@ -94,7 +94,7 @@ async function parseFormData(request, response, requestContexts, log) {
9494 } ) ;
9595
9696 tempFileStream . on ( 'error' , ( err ) => {
97- log . trace ( 'Error streaming file to temporary location' , { error : err } ) ;
97+ log . trace ( 'Error streaming file to temporary location' , { error : err . message } ) ;
9898 reject ( errors . InternalError ) ;
9999 } ) ;
100100
@@ -116,7 +116,7 @@ async function parseFormData(request, response, requestContexts, log) {
116116 } ) ;
117117
118118 formDataParser . on ( 'error' , ( err ) => {
119- log . trace ( 'Error processing form data:' , { error : err . description } ) ;
119+ log . trace ( 'Error processing form data:' , { error : err . message } ) ;
120120 request . unpipe ( formDataParser ) ;
121121 // Following observed AWS behaviour
122122 reject ( errors . MalformedPOSTRequest ) ;
@@ -131,7 +131,7 @@ function getFileStat(filePath, log) {
131131 return new Promise ( ( resolve , reject ) => {
132132 fs . stat ( filePath , ( err , stats ) => {
133133 if ( err ) {
134- log . trace ( 'Error getting file size' , { error : err } ) ;
134+ log . trace ( 'Error getting file size' , { error : err . message } ) ;
135135 return reject ( errors . InternalError ) ;
136136 }
137137 return resolve ( stats ) ;
0 commit comments