CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-aggregate-error

Create an error from multiple errors

94

1.28x
Overview
Eval results
Files

task.mdevals/scenario-6/

Error Stack Cleaner

Build a utility that cleans and formats error stack traces by removing unnecessary noise and internal implementation frames.

Capabilities

External Stack Cleaning

  • Given an Error with a stack trace containing Node.js internal frames, the function returns a cleaned stack trace without those internal frames @test

Internal Frame Removal

  • Given an Error with a stack trace containing frames from the stack-cleaner.js file itself, the function returns a stack trace without those internal frames @test

Edge Case Handling

  • Given an Error without a stack property, the function returns the string representation of the error @test

Implementation

@generates

API

/**
 * Cleans an error's stack trace by removing noise and internal frames.
 *
 * @param {Error} error - The error object to clean
 * @returns {string} The cleaned stack trace
 */
function cleanErrorStack(error) {
  // Implementation here
}

module.exports = { cleanErrorStack };

Dependencies { .dependencies }

clean-stack { .dependency }

Provides stack trace cleaning to remove Node.js internals and other noise.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/npm-aggregate-error

tile.json