Skip to content

Commit

Permalink
debug failures
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Sep 10, 2024
1 parent 908e75b commit 0b38f4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/node/src/docker/docker-image.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {log} from '@augment-vir/common';
import {ensureError} from '@augment-vir/core';
import {runShellCommand} from '../augments/terminal/shell.js';

Expand Down Expand Up @@ -29,7 +30,10 @@ export async function removeImageFromLocalRegistry(
imageName: string,
) {
try {
await runShellCommand(`docker image rm '${imageName}'`, {rejectOnError: true});
const shellOutput = await runShellCommand(`docker image rm '${imageName}'`, {
rejectOnError: true,
});
log.debug(shellOutput);
} catch (caught) {
const error = ensureError(caught);

Expand Down
2 changes: 2 additions & 0 deletions packages/node/src/prisma/prisma-migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function applyPrismaMigrationsToDev(
...env,
},
stdoutCallback(stdout, childProcess) {
log.debug({stdout});
if (stdout.includes('Enter a name for the new migration')) {
if (childProcess.pid) {
terminate(childProcess.pid);
Expand All @@ -58,6 +59,7 @@ export async function applyPrismaMigrationsToDev(
}
},
stderrCallback(stderr, childProcess) {
log.debug({stderr});
if (
stderr.includes(
'Prisma Migrate has detected that the environment is non-interactive, which is not supported',
Expand Down

0 comments on commit 0b38f4f

Please sign in to comment.