mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Edit error message for missing plugin type/info
This commit is contained in:
parent
4035041967
commit
ff5f67b4b8
@ -41,7 +41,7 @@ describe("Trial", () => {
|
|||||||
expect(
|
expect(
|
||||||
() => new Trial(dependencies, description, timeline)
|
() => new Trial(dependencies, description, timeline)
|
||||||
).toThrowErrorMatchingInlineSnapshot(
|
).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.\""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -38,7 +38,7 @@ export class Trial extends TimelineNode {
|
|||||||
this.pluginInfo = this.pluginClass?.["info"];
|
this.pluginInfo = this.pluginClass?.["info"];
|
||||||
if (!this.pluginInfo) {
|
if (!this.pluginInfo) {
|
||||||
throw new Error(
|
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."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user