From ada0afb61469cf77a48a04ae79fb993b939d68a8 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Tue, 10 Jan 2012 11:00:38 -0700 Subject: [PATCH] (loadgen) fix crash bug - errors raised are not always strings, don't crash in this case --- bin/load_gen | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/load_gen b/bin/load_gen index a5b33cf11..9b019d0ee 100755 --- a/bin/load_gen +++ b/bin/load_gen @@ -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 { -- GitLab