Skip to content

Commit

Permalink
Check for shelve error
Browse files Browse the repository at this point in the history
  • Loading branch information
harveysanders committed Feb 2, 2024
1 parent af2850a commit 80fe57d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ function shelveProject(project) {
}, '');
const cmd = `mv ${path}/${name} ${path}/${underscores}_${name}`;
console.log(clc.yellow('Shelving project. . .'));
exec(cmd, function () {
exec(cmd, function (err) {
if (err) return rej(err);
res(`${path}/${underscores}_${name}`);
});
});
Expand Down

0 comments on commit 80fe57d

Please sign in to comment.