tea artist 0a5e32a038
chore: rename (#356)
* chore: change github url to teableio

* chore: rename teable-group to teable

* chore: rename url path to teableio
2024-01-30 22:20:05 +08:00

11 lines
210 B
TypeScript

import type { HttpError } from '@teable/core';
export const getError = async (call: () => unknown) => {
try {
await call();
return;
} catch (error: unknown) {
return error as HttpError;
}
};