Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Fix Unknown error with exit code 'null'. Closes #50 #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Meteor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ class Meteor extends EventEmitter
hasStartedMongoDBText: (buffer)=>
if buffer.lastIndexOf('Started MongoDB') isnt -1
@mongodb = new MeteorMongodb(@childProcess.child.pid)
@emit "mongodb ready"


hasErrorText: (buffer)=>
Expand Down
3 changes: 2 additions & 1 deletion lib/MeteorMongodb.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ class MeteorMongodb extends EventEmitter
ppid: @meteorPid
, (err, resultList )=>
@mongodChilds = resultList
if (err)
if (err || resultList.length==0)
log.warn "spacjam: Warning: Couldn't find any mongod children:\n", err
else if resultList.length > 1
log.warn "spacjam: Warning: Found more than one mongod child:\n", resultList
else
log.debug "Found meteor mongod child with pid: ", resultList[0].pid
@emit "mongodb ready"


kill: ->
Expand Down