Skip to content

Commit

Permalink
refactor(Topic): Changes error message when no tracks are found
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdebian committed Nov 7, 2023
1 parent ad17ed1 commit ffe7d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/__tests__/topic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('parseTopic', () => {
version: '1.0.0',
})
.catch((err) => {
expect(err.message).toBe('No tracks found, expected at least one.');
expect(err.message).toBe('No tracks found. Expected at least one.');
});
});

Expand Down
2 changes: 1 addition & 1 deletion lib/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const parseTopic = async (dir, opts, pkg) => {
}

if (!tracks) {
throw new Error('No tracks found, expected at least one.');
throw new Error('No tracks found. Expected at least one.');
}

const units = await parseUnits(dir, langs, parsedLocales);
Expand Down

0 comments on commit ffe7d98

Please sign in to comment.