Skip to content
Permalink
Browse files
fix(serenity-bdd): reporter is capable of rendering errors with no st…
…ack trace
  • Loading branch information
jan-molak committed Oct 8, 2020
1 parent 91b95e3 commit ac38585f98b6d857b8a786522ab628aa99fbdb0c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -18,7 +18,7 @@ export class ErrorRenderer {
return {
errorType: error.constructor.name,
message: error.message,
stackTrace: ErrorRenderer.parser.parse(error).map(frame => ({
stackTrace: ! error.stack ? [] : ErrorRenderer.parser.parse(error).map(frame => ({
declaringClass: '',
methodName: `${ frame.functionName }(${ (frame.args || []).join(', ') })`,
fileName: frame.fileName,

0 comments on commit ac38585

Please sign in to comment.