Apply with the Grit CLI
grit apply add_try_catch_async_functions
Wraps async call with try and catch
BEFORE
const testFunc = async () => { const response = await fetchApiInformation(); };
AFTER
const testFunc = async () => { try { const response = await fetchApiInformation(); } catch (e) { console.log(e); } };