Skip to content

Commit

Permalink
Fix error type serverless invoke (#148)
Browse files Browse the repository at this point in the history
* fix-error-type

* add newline
  • Loading branch information
thomas-tacquet authored Mar 8, 2023
1 parent ad2048c commit 454fa75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invoke/scalewayInvoke.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const BbPromise = require('bluebird');
const axios = require('axios');
const { EOL } = require('os');

const scalewayApi = require('../shared/api/endpoint');
const setUpDeployment = require('../shared/setUpDeployment');
Expand Down Expand Up @@ -62,7 +63,7 @@ class ScalewayInvoke {
process.stdout.write(JSON.stringify(res.data));
}).
catch(error => {
process.stderr.write(error);
process.stderr.write(error.toString() + EOL);
});
}

Expand Down

0 comments on commit 454fa75

Please sign in to comment.