From cbfb537e588254577045ef21b9753124bbaf3b45 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 29 Nov 2017 17:29:50 -0500 Subject: [PATCH] Friendlier error for child returned 137 --- app/static/app/js/components/TaskListItem.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/static/app/js/components/TaskListItem.jsx b/app/static/app/js/components/TaskListItem.jsx index 7690e731..9a17e9a8 100644 --- a/app/static/app/js/components/TaskListItem.jsx +++ b/app/static/app/js/components/TaskListItem.jsx @@ -220,7 +220,10 @@ class TaskListItem extends React.Component { checkForMemoryError(lines){ for (let line of lines){ - if (line.indexOf("Killed") !== -1 || line.indexOf("MemoryError") !== -1 || line.indexOf("std::bad_alloc") !== -1){ + if (line.indexOf("Killed") !== -1 || + line.indexOf("MemoryError") !== -1 || + line.indexOf("std::bad_alloc") !== -1 || + line.indexOf("Child returned 137") !== -1){ this.setState({memoryError: true}); } }