Skip to content

Commit

Permalink
check for a different failure message (#1175)
Browse files Browse the repository at this point in the history
* check for a different failure message

* terminate the Python process
  • Loading branch information
elharo authored Jan 4, 2017
1 parent 392f6a7 commit 3dc617e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,11 @@ public void onOutputLine(String line) {
} else if (line.equals("Traceback (most recent call last):")) { //$NON-NLS-1$
// An error occurred
setServerState(IServer.STATE_STOPPED);

} else if (line.contains("Starting module") && line.contains("running at: http://")) { //$NON-NLS-1$ //$NON-NLS-2$
} else if (line.contains("Error: A fatal exception has occurred. Program will exit")) { //$NON-NLS-1$
// terminate the Python process
stop(false);
} else if (line.contains("Starting module") //$NON-NLS-1$
&& line.contains("running at: http://")) { //$NON-NLS-1$
if (serverPortCandidate == 0 || line.contains("Starting module \"default\"")) { //$NON-NLS-1$
serverPortCandidate = extractPortFromServerUrlOutput(line);
}
Expand Down

0 comments on commit 3dc617e

Please sign in to comment.