mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed error wording in fixture-utils
refs 404b2023e5
refs https://github.com/TryGhost/Toolbox/issues/129
- The previous error message wasn't helpful at all . Now we can tell "what?" fixture was looked-up and then go from there to find out why it is missing
This commit is contained in:
parent
67b6304807
commit
9c0752896c
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ const getFixtureOps = (toDos) => {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (!toDoList[toDo]) {
|
if (!toDoList[toDo]) {
|
||||||
throw new Error('setup todo does not exist - spell mistake?');
|
throw new Error(`The fixture ${toDo} does not exist.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
fixtureOps.push(toDoList[toDo]);
|
fixtureOps.push(toDoList[toDo]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue