From ff5f67b4b830202e2b46ade919118cebb9718a53 Mon Sep 17 00:00:00 2001 From: Ryan Kilpadi <47367209+rkilpadi@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:15:59 -0500 Subject: [PATCH] Edit error message for missing plugin type/info --- packages/jspsych/src/timeline/Trial.spec.ts | 2 +- packages/jspsych/src/timeline/Trial.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jspsych/src/timeline/Trial.spec.ts b/packages/jspsych/src/timeline/Trial.spec.ts index 1dc49364..e26e02c6 100644 --- a/packages/jspsych/src/timeline/Trial.spec.ts +++ b/packages/jspsych/src/timeline/Trial.spec.ts @@ -41,7 +41,7 @@ describe("Trial", () => { expect( () => new Trial(dependencies, description, timeline) ).toThrowErrorMatchingInlineSnapshot( - "\"Trial plugin not recognized. Please provide a valid plugin using the 'type' parameter.\"" + "\"Plugin not recognized. Please provide a valid plugin using the 'type' parameter.\"" ); } }); diff --git a/packages/jspsych/src/timeline/Trial.ts b/packages/jspsych/src/timeline/Trial.ts index 70ac517c..b2575240 100644 --- a/packages/jspsych/src/timeline/Trial.ts +++ b/packages/jspsych/src/timeline/Trial.ts @@ -38,7 +38,7 @@ export class Trial extends TimelineNode { this.pluginInfo = this.pluginClass?.["info"]; if (!this.pluginInfo) { throw new Error( - "Trial plugin not recognized. Please provide a valid plugin using the 'type' parameter." + "Plugin not recognized. Please provide a valid plugin using the 'type' parameter." ); }