chore: format
This commit is contained in:
parent
8b3574d84c
commit
6eb04d9d82
2 changed files with 14 additions and 13 deletions
|
@ -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",
|
||||
},
|
||||
);
|
||||
|
|
|
@ -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})`,
|
||||
|
|
Loading…
Reference in a new issue