Skip to content

bail hides error details from the console? #316

Closed

Description

@eight04

When an error happens with bail:

Error: Bail
    at bail (file:///C:/Users/eight04/dev/db-to-cloud/node_modules/@reporters/bail/index.js:6:13)
    at bail.next (<anonymous>)
    at nextAsync (node:internal/streams/from:193:48)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
Emitted 'error' event on Duplex instance at:
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

Without bail:

  RequestError: failed to fetch [409]: {"message":"docs/1.json does not match 693aa00b30c8ce50a75cee93e37435b41518d3c7","documentation_url":"https://docs.github.com/rest/repos/contents#delete-a-file","status":"409"}
      at doRequest (C:\Users\eight04\dev\db-to-cloud\lib\request.js:76:15)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Object.fn (C:\Users\eight04\dev\db-to-cloud\lib\request.js:25:16)
      at async Object.delete_ [as delete] (C:\Users\eight04\dev\db-to-cloud\lib\drive\github.js:125:7)
      at async Object.after (C:\Users\eight04\dev\db-to-cloud\test\adapter\github.js:25:7)
      at async TestContext.<anonymous> (C:\Users\eight04\dev\db-to-cloud\test\test.js:240:9)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    code: 409,
    origin: Response { size: 0, timeout: 0, Symbol(Body internals): { body: [Minipass], disturbed: true, error: null }, Symbol(Response internals): { url: 'https://api.github.com/repos/eight04/_db_to_cloud_test/contents/docs/1.json', status: 409, statusText: 'Conflict', headers: [Headers], counter: 0, trailer: [Promise] } }
  }

The setup was copied from README:

    "test": "npm run lint && c8 --reporter=lcov node --test --test-isolation=none --test-reporter=@reporters/bail --test-reporter-destination=stderr --test-reporter=spec --test-reporter-destination=stdout test/test.js",

Activity

  1. added a commit that references this issue on Nov 18, 2026
    bb9d8d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions