chore: format

This commit is contained in:
naskya 2024-03-05 09:22:50 +09:00
parent 8b3574d84c
commit 6eb04d9d82
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
2 changed files with 14 additions and 13 deletions

View file

@ -2,11 +2,9 @@ import { execa } from "execa";
(async () => {
await execa(
"pnpm", [
"typeorm",
"migration:create",
`src/migration/${process.argv[2]}`
], {
"pnpm",
["typeorm", "migration:create", `src/migration/${process.argv[2]}`],
{
stdio: "inherit",
},
);

View file

@ -179,15 +179,18 @@ export default async (
throw e;
} else {
const errorId = uuid();
apiLogger.error(`Internal error occurred in ${ep.name}: ${e.message} (Event ID: ${errorId})`, {
ep: ep.name,
ps: data,
e: {
message: e.message,
code: e.name,
stack: e.stack,
apiLogger.error(
`Internal error occurred in ${ep.name}: ${e.message} (Event ID: ${errorId})`,
{
ep: ep.name,
ps: data,
e: {
message: e.message,
code: e.name,
stack: e.stack,
},
},
});
);
throw new ApiError(null, {
e: {
message: `Internal error (Event ID: ${errorId})`,