Skip to content

Commit

Permalink
fix(logs): improve error message with EAI_AGAIN and ECONNRESET
Browse files Browse the repository at this point in the history
  • Loading branch information
hsablonniere committed Feb 7, 2024
1 parent 4b2d8c4 commit fada067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/log-v4.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getHostAndTokens } = require('./send-to-api.js');
const { getHostAndTokens, processError } = require('./send-to-api.js');
const colors = require('colors/safe');
const { Deferred } = require('./utils.js');
const Logger = require('../logger.js');
Expand Down Expand Up @@ -45,6 +45,7 @@ async function displayLogs (params) {
// start() is blocking until end of stream
logStream.start()
.then((reason) => deferred.resolve())
.catch(processError)
.catch((error) => deferred.reject(error));

return logStream;
Expand Down

0 comments on commit fada067

Please sign in to comment.