scaleway / serverless-scaleway-functions

Plugin for Serverless Framework to allow users to deploy their serverless applications on Scaleway Functions
MIT License
78 stars 25 forks source link

Fix error type serverless invoke #148

Closed thomas-tacquet closed 1 year ago

thomas-tacquet commented 1 year ago

Mentionned in https://github.com/scaleway/serverless-scaleway-functions/issues/147

The error returned by function calls on serverless invoke command was not readable because of the wrong type.

After toString conversion :

 serverless invoke --function testfunc
[...]
AxiosError: Request failed with status code 403%
Cubox commented 1 year ago

Minor thing, but the % at the end of the message is due to zsh signaling there was no newline after that text. Maybe add a \n after the text?

thomas-tacquet commented 1 year ago

Minor thing, but the % at the end of the message is due to zsh signaling there was no newline after that text. Maybe add a \n after the text?

Oh sure, fixed and tested 👌

serverless invoke --function testfunc
[...]
AxiosError: Request failed with status code 403