Edit error message for missing plugin type/info

This commit is contained in:
Ryan Kilpadi 2025-01-06 13:15:59 -05:00 committed by GitHub
parent 4035041967
commit ff5f67b4b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.\""
); );
} }
}); });

View File

@ -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."
); );
} }