Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

TypeError: Cannot read property 'map' of null #329

Closed
Jellyfrog opened this Issue · 0 comments

2 participants

Jellyfrog Maciej Małecki
Jellyfrog

Had a node-script running that I stopped
Then I tried to run
forever logs server.js

And got this:

/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:34
        if (arr.map) {
               ^
TypeError: Cannot read property 'map' of null
    at _map (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:34:16)
    at _asyncMap (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:181:15)
    at Object.doSeries [as mapSeries] (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:174:23)
    at forever.tail (/usr/local/lib/node_modules/forever/lib/forever.js:540:11)
    at /usr/local/lib/node_modules/forever/lib/forever.js:131:7
    at _asyncMap (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:190:13)
    at async.forEach (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:94:25)
    at _asyncMap (/usr/local/lib/node_modules/forever/node_modules/utile/node_modules/async/lib/async.js:187:17)
    at /usr/local/lib/node_modules/forever/lib/forever.js:116:11
    at Object.oncomplete (fs.js:297:15)

Maybe it should output something like "No logs exists for server.js" or something similar

Maciej Małecki mmalecki closed this issue from a commit
Felix Böhm fb55 added a helpful error message
when no logs are available

fixes #329
33dc125
Maciej Małecki mmalecki closed this in 33dc125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.