Azure / Azure/api-management-developer-portal

Npm run publish step eats exception

Open
#1,225 1 comment 0 reactions 1 assignee Claimed by @azaslonov View on GitHub
(t) Improvement (u) Paperbits P2
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

In Npm run publish command, if there is any error while publishing, code only logs it and eats exception by returning null. The code is part of node_module @paperbits/core, so we have no control over the code.

For example, mediaPublisher.ts and pagePublisher.ts are the publishing modules where exceptions are getting eaten up.

![image](https://user-images.githubusercontent.com/68211464/113648191-8cd38080-96cf-11eb-92b1-5ac096ebbc5d.png)

So if somehow during publishing, some error happens, Npm command doesn't treat it as error.

Can it be suggested how we can achieve treatment of errors happening during publishing be reported as error so that necessary action can be taken.

**Our use case is as follows**:
- We are self hosting the developer portal.
- The issue comes when we try to publish a content where the download(blob) url is incorrect.
![image](https://user-images.githubusercontent.com/68211464/113791157-615f9d00-9786-11eb-9e79-0e9facb838a2.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.