Fix waterfall error
This commit is contained in:
@@ -580,7 +580,11 @@ function displayThemedPrompt(name, client, options, cb) {
|
|||||||
client,
|
client,
|
||||||
dispOptions,
|
dispOptions,
|
||||||
(err, artInfo) => {
|
(err, artInfo) => {
|
||||||
return callback(err, promptConfig, artInfo);
|
if(err) {
|
||||||
|
return callback(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
return callback(null, promptConfig, artInfo);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user