From 0ce50b6cd64e6dd0ab2dd67144da6b0e8f19dee9 Mon Sep 17 00:00:00 2001
From: adroitwhiz <adroitwhiz@protonmail.com>
Date: Mon, 11 May 2020 15:38:11 -0400
Subject: [PATCH] log error.message

---
 test/integration/pick-tests.js    | 2 +-
 test/integration/scratch-tests.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/integration/pick-tests.js b/test/integration/pick-tests.js
index f8f14633..00a2a08b 100644
--- a/test/integration/pick-tests.js
+++ b/test/integration/pick-tests.js
@@ -106,6 +106,6 @@ const runFile = async (file, action, page, script) => {
 })().catch(err => {
     // Handle promise rejections by exiting with a nonzero code to ensure that tests don't erroneously pass
     // eslint-disable-next-line no-console
-    console.error(err);
+    console.error(err.message);
     process.exit(1);
 });
diff --git a/test/integration/scratch-tests.js b/test/integration/scratch-tests.js
index c67e5598..e3cad1d0 100644
--- a/test/integration/scratch-tests.js
+++ b/test/integration/scratch-tests.js
@@ -120,6 +120,6 @@ const testFile = (file, page) => test(file, async t => {
 })().catch(err => {
     // Handle promise rejections by exiting with a nonzero code to ensure that tests don't erroneously pass
     // eslint-disable-next-line no-console
-    console.error(err);
+    console.error(err.message);
     process.exit(1);
 });