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