Skip to content
Snippets Groups Projects
Unverified Commit bd792d76 authored by syuilo's avatar syuilo
Browse files

Fix type annotation

parent 4920983f
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
}
// API invoking
return await ep.exec(data, user, app, file).catch(e => {
return await ep.exec(data, user, app, file).catch((e: Error) => {
if (e instanceof ApiError) {
throw e;
} else {
......@@ -76,7 +76,7 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
throw new ApiError(null, {
e: {
message: e.message,
code: e.code,
code: e.name,
stack: e.stack
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment