From 24bfc280ea063721475049cdf04c1123756e845d Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 27 Mar 2020 13:28:20 +0530 Subject: [PATCH] error message improvement --- remix-tests/src/testRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-tests/src/testRunner.ts b/remix-tests/src/testRunner.ts index a8d81b094c..8e022c8854 100644 --- a/remix-tests/src/testRunner.ts +++ b/remix-tests/src/testRunner.ts @@ -167,7 +167,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com let sendParams: Record | null = null if (sender) sendParams = { from: sender } if(func.inputs && func.inputs.length > 0) - return resultsCallback(new Error('Method inside a test contract can not have parameters'), { passingNum, failureNum, timePassed }) + return resultsCallback(new Error(`Method '${func.name}' can not have parameters inside a test contract`), { passingNum, failureNum, timePassed }) const method = testObject.methods[func.name].apply(testObject.methods[func.name], []) const startTime = Date.now() if (func.constant) {