mirror of
https://github.com/teableio/teable.git
synced 2026-01-21 05:01:40 +08:00
* chore: change github url to teableio * chore: rename teable-group to teable * chore: rename url path to teableio
11 lines
210 B
TypeScript
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;
|
|
}
|
|
};
|