mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
fix build
This commit is contained in:
parent
357cc0972a
commit
a206eaa301
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ export const measure = async <T>(cb: () => Promise<T>, measureName: string, outp
|
|||
export const unwrapServiceError = async <T>(promise: Promise<ServiceError | T>): Promise<T> => {
|
||||
const data = await promise;
|
||||
if (isServiceError(data)) {
|
||||
throw new Error(data);
|
||||
throw new Error(data.message);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue