Aquí está el código:
function getList() { return functionList() .then((list) => functionDetails()) .catch((err) => console.log(err)); }cómo convertirlo a async/await?
Puede ajustar la llamada a la función esperada en un intento de captura para manejar el error y luego ejecutar su código .then en el bloque finally .
async function getList() { try { const result = await functionList(); return ((result) => functionDetails()()); } catch(e) { console.log(e); } }