fix: More error handling in proxy configuration + cleanups

This commit is contained in:
Andras Bacsai
2022-02-11 21:14:47 +01:00
parent 02e0385ab8
commit d88f2ea4c3
13 changed files with 31 additions and 37 deletions

View File

@@ -7,7 +7,7 @@ export async function listLogs({ buildId, last = 0 }) {
orderBy: { time: 'asc' }
});
return [...body];
} catch (e) {
throw PrismaErrorHandler(e);
} catch (error) {
return PrismaErrorHandler(error);
}
}