0
Fork 0
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:
Naz 2021-12-07 11:12:10 +04:00
parent 67b6304807
commit 9c0752896c

View file

@ -711,7 +711,7 @@ const getFixtureOps = (toDos) => {
});
} else {
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]);