Commit d1144d0b315d070a95f77ad2f54fd06191047204

Golmote 2016-10-10T22:53:48

Test suite: fixed missing diff in error message

diff --git a/tests/run-child.js b/tests/run-child.js
index ea93f1f..faaca98 100644
--- a/tests/run-child.js
+++ b/tests/run-child.js
@@ -15,7 +15,7 @@ if (argv.language) {
 				}
 				process.send({success: true});
 			} catch (e) {
-				process.send({error: e.message});
+				process.send({error: JSON.stringify(e)});
 			}
 		}
 	});
diff --git a/tests/run.js b/tests/run.js
index 8f7cf27..73c4c4a 100644
--- a/tests/run.js
+++ b/tests/run.js
@@ -49,7 +49,7 @@ for (var language in testSuite) {
 				                // over and over again.
 				                setTimeout(function() {
 					                if (o.error) {
-						                throw new Error(o.error);
+						                throw JSON.parse(o.error);
 					                } else if (o.success) {
 						                done();
 					                }