Skip to content
Snippets Groups Projects
Commit ada0afb6 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

(loadgen) fix crash bug - errors raised are not always strings, don't crash in this case

parent 4239eeb8
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,7 @@ function poll() {
outstanding[act]--;
if (undefined === completed[act]) completed[act] = [ 0, 0, 0 ];
if (err) {
if (typeof err != 'string') err = err.toString();
if (err.indexOf('server is too busy') != -1) {
completed[act][2]++;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment