Skip to content

Runtime: no position returned for a rejected promise #1174

Description

@josephjclark

Run this code:

fn(() => {
  return Promise.reject({});
});

No error position will be reported in the CLI

Image

This is obviously annoying for users trying to debug job code

For the record, I think this is a bit of an obscure case, and it's coming out of dhis2 5.0.5 (Adaptor.js line 113(

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Product Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions