try {
  potentialFail();
} catch (error) {
  console.log(error);
}