2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

fix: don't report cannot fetch exchange rate

This commit is contained in:
18alantom 2022-08-23 16:47:05 +05:30
parent df3ad7b00d
commit abcc96752e

View File

@ -228,8 +228,9 @@ export async function getExchangeRate({
}
} catch (error) {
console.error(error);
throw new Error(
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`
throw new NotFoundError(
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`,
false
);
}
} else {