Azure / Synapse-workspace-deployment

MIT License
27 stars 36 forks source link

getBearer fails to output info logs when promise is rejected #30

Closed cpc-camarj closed 2 years ago

cpc-camarj commented 2 years ago

While using this action in a workflow with a Client ID and Secret, the getBearer function failed to output the info logs indicating why the promise was rejected. Also, it outputs a string and not an error object, so that the catch in the calling function getParams returns an undefined error.

This problem particularly shows up with a 404 error.