@@ -198,7 +198,7 @@ private PipesResult zipAndEmitEmbeddedFiles(TempFileUnpackHandler tempHandler) {
198198 } catch (IOException e ) {
199199 LOG .warn ("Failed to create zip file" , e );
200200 return new PipesResult (PipesResult .RESULT_STATUS .EMIT_EXCEPTION ,
201- "Failed to create zip file: " + ExceptionUtils .getStackTrace ( e ));
201+ "Failed to create zip file: " + ExceptionUtils .format ( e , parseContext ));
202202 }
203203
204204 // Emit the zip file
@@ -208,7 +208,7 @@ private PipesResult zipAndEmitEmbeddedFiles(TempFileUnpackHandler tempHandler) {
208208 } catch (IOException e ) {
209209 LOG .warn ("Failed to emit zip file" , e );
210210 return new PipesResult (PipesResult .RESULT_STATUS .EMIT_EXCEPTION ,
211- "Failed to emit zip file: " + ExceptionUtils .getStackTrace ( e ));
211+ "Failed to emit zip file: " + ExceptionUtils .format ( e , parseContext ));
212212 }
213213
214214 LOG .debug ("Successfully zipped and emitted {} embedded files to {}" ,
@@ -289,7 +289,7 @@ private PipesResult emitFrictionlessZipped(FrictionlessUnpackHandler frictionles
289289 } catch (IOException e ) {
290290 LOG .warn ("Failed to create Frictionless zip file" , e );
291291 return new PipesResult (PipesResult .RESULT_STATUS .EMIT_EXCEPTION ,
292- "Failed to create Frictionless zip file: " + ExceptionUtils .getStackTrace ( e ));
292+ "Failed to create Frictionless zip file: " + ExceptionUtils .format ( e , parseContext ));
293293 }
294294
295295 // Emit the zip file
@@ -299,7 +299,7 @@ private PipesResult emitFrictionlessZipped(FrictionlessUnpackHandler frictionles
299299 } catch (IOException e ) {
300300 LOG .warn ("Failed to emit Frictionless zip file" , e );
301301 return new PipesResult (PipesResult .RESULT_STATUS .EMIT_EXCEPTION ,
302- "Failed to emit Frictionless zip file: " + ExceptionUtils .getStackTrace ( e ));
302+ "Failed to emit Frictionless zip file: " + ExceptionUtils .format ( e , parseContext ));
303303 }
304304
305305 LOG .debug ("Successfully emitted Frictionless package with {} resources to {}" ,
@@ -351,7 +351,7 @@ private PipesResult emitFrictionlessDirectory(FrictionlessUnpackHandler friction
351351 } catch (IOException e ) {
352352 LOG .warn ("Failed to emit Frictionless directory output" , e );
353353 return new PipesResult (PipesResult .RESULT_STATUS .EMIT_EXCEPTION ,
354- "Failed to emit Frictionless directory output: " + ExceptionUtils .getStackTrace ( e ));
354+ "Failed to emit Frictionless directory output: " + ExceptionUtils .format ( e , parseContext ));
355355 }
356356
357357 LOG .debug ("Successfully emitted Frictionless package with {} resources (directory mode) to {}" ,
@@ -484,7 +484,7 @@ protected ParseDataOrPipesResult parseFromTuple() throws TikaException, Interrup
484484 } catch (IOException e ) {
485485 LOG .warn ("fetcher initialization exception id={}" , fetchEmitTuple .getId (), e );
486486 return new ParseDataOrPipesResult (null ,
487- new PipesResult (PipesResult .RESULT_STATUS .FETCHER_INITIALIZATION_EXCEPTION , ExceptionUtils .getStackTrace ( e )));
487+ new PipesResult (PipesResult .RESULT_STATUS .FETCHER_INITIALIZATION_EXCEPTION , ExceptionUtils .format ( e , parseContext )));
488488 }
489489 // Use newMetadata() to apply any configured write limits
490490 Metadata metadata = localContext .newMetadata ();
@@ -503,7 +503,7 @@ protected ParseDataOrPipesResult parseFromTuple() throws TikaException, Interrup
503503 } catch (TikaException | IOException e ) {
504504 LOG .warn ("fetch exception id={}" , fetchEmitTuple .getId (), e );
505505 return new ParseDataOrPipesResult (null ,
506- new PipesResult (PipesResult .RESULT_STATUS .UNSPECIFIED_CRASH , ExceptionUtils .getStackTrace ( e )));
506+ new PipesResult (PipesResult .RESULT_STATUS .UNSPECIFIED_CRASH , ExceptionUtils .format ( e , parseContext )));
507507 }
508508 }
509509
0 commit comments