Skip to content

Commit

Permalink
fix(introspection): nicer introspection warning output
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio authored and Jolg42 committed May 6, 2020
1 parent 7bdf025 commit bda7f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packages/introspection/src/commands/Introspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ Then you can run ${chalk.green('prisma introspect')} again.
message += warning.affected
.map(
(it) =>
`- Model: "${it.model}" Field: "${it.field}" Raw Datatype: "${it.tpe}"`,
`- Model "${it.model}", field: "${it.field}", original data type: "${it.tpe}"`,
)
.join('\n')
} else if (warning.code === 4) {
message += warning.affected
.map((it) => `- Enum: "${it.enm}" Value: "${it.value}"`)
.map((it) => `- Enum "${it.enm}", value: "${it.value}"`)
.join('\n')
}

Expand Down

0 comments on commit bda7f1b

Please sign in to comment.