We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12621b9 commit a7be776Copy full SHA for a7be776
1 file changed
_new/index.js
@@ -99,8 +99,13 @@ module.exports = class extends Generator {
99
.map(path.normalize)
100
.map(file => file.replace(/\\/g, '/'))
101
.concat([new inquirer.Separator(), 'Other']);
102
- } catch (e) {
103
- console.error(e);
+ } catch (err) {
+ this.log.error(
104
+ 'There was an unexpected error retrieving files: \n %O',
105
+ err
106
+ );
107
+
108
+ return ['Other'];
109
}
110
},
111
default: answers =>
0 commit comments