Skip to content

Commit

Permalink
update filterMigrationNames error message; update some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
okv committed May 23, 2020
1 parent 45fb533 commit 4c3efdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/migrator/methods/filterMigrationNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function filterMigrationNames(params) {
if (params.by === 'tag') {
return this._filterMigrationNamesByTag(params);
} else {
throw new Error(`Don't know how to filter by ${params.by}`);
throw new Error(`Don't know how to filter by "${params.by}"`);
}
});
};
2 changes: 1 addition & 1 deletion lib/migrator/methods/normalizeNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function normalizeNames(names) {
const normalizedNames = names.map((name) => {
const normalizedName = pathUtils.basename(name, '.js');

// check by full name (or path, coz `basename` removes dir)
// check by full name
if (_(namesHash).has(normalizedName)) return normalizedName;

// check by number
Expand Down

0 comments on commit 4c3efdc

Please sign in to comment.