Skip to content

Aff doesn't fail when running on Node #44

@beckyconning

Description

@beckyconning

The following program outputs [Log] onerror@file:///Users/beckyconning/Documents/purescript-sketchpad/index.js:9693:24 (index.js, line 1302) in a browser but is silent in Node.

It appears print is never called.

module Main where

import Prelude
import Debug.Trace

import Control.Monad.Aff
import Control.Monad.Eff.Console
import Data.Foreign
import Network.HTTP.Affjax

main = runAff print (print <<< show <<< _.status) $ (get "ajsdlfa" :: Affjax _ Foreign)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething that should function correctly isn't.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions