question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Most not reporting error when using most.create.

See original GitHub issue

I started using most today and stumbled on the problem with most not reporting any errors when there is end function call right after add function call in most.create. Here is minimal code presenting the behaviour:

const most = require('most');

most.create((add, end, err) => {
    add('dummy element');
    end();
})
    .map(e => {
        throw new Error('This should be reported');
    })
    .drain()
    .catch(err => console.error(err.message));

This code doesn’t print “This should be reported” string as I expected. After commenting end call it prints the string.

I’m using node v6.1.0 and most 0.19.3.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
p2004acommented, May 12, 2016

Ok, thank you. Done.

0reactions
briancavaliercommented, May 12, 2016

See #261

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Troubleshoot and Fix Excel Pivot Table Errors
How to troubleshoot and fix Excel pivot table errors, such as PivotTable field name is not valid. Find the problem, and fix it....
Read more >
Report on VAST errors - Google Ad Manager Help
Learn how to create a VAST errors report and view how impressions are lost Some video features might not be enabled for your...
Read more >
6 Common Google Data Studio Problems and How to Fix Them
This article presents the most common problems in Google Data Studio and how to fix them. ... Problem 2: Date fields not showing...
Read more >
Error message when Report Server service starts - SQL Server
Cause. Typically, this problem occurs when the Report Server service account password is reset. Resolution. To resolve this problem, use one of ...
Read more >
How to Report Errors in Forms: 10 Design Guidelines
Help users recover from errors by clearly identifying the problems and allowing users to access and correct erroneous fields easily.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found