Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit f8202a2

Browse files
committed
fix: improve error message
1 parent 1a71683 commit f8202a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/step-provider-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function StepProviderMixin(superclass) {
1717
declareStep(config, ...args) {
1818
const factory = this.registeredSteps.get(config.type);
1919
if (factory === undefined) {
20-
throw new Error(`Undefined type ${config.type}`);
20+
throw new Error(`Undefined step ${config.type}`);
2121
}
2222

2323
return new factory(config, ...args);

tests/step-provider-mixin-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ test('provider unknown type', async t => {
3939
{}
4040
);
4141
} catch (e) {
42-
t.is(e.message, 'Undefined type unknown-step');
42+
t.is(e.message, 'Undefined step unknown-step');
4343
}
4444
});

0 commit comments

Comments
 (0)