Skip to content

Runtime: no position returned for a rejected promise #1174

@josephjclark

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

No labels
No labels

Type

No type

Projects

Status

DevX Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions