Skip to content

Commit

Permalink
chore: Improve error message when URLs don't start with prisma:// w…
Browse files Browse the repository at this point in the history
…hen using dataproxy (#12067)

Co-authored-by: Joël Galeran <Jolg42@users.noreply.github.com>
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
  • Loading branch information
3 people committed Apr 25, 2022
1 parent 9b55195 commit d026f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine-core/src/data-proxy/DataProxyEngine.ts
Expand Up @@ -237,7 +237,7 @@ export class DataProxyEngine extends Engine {
const { protocol, host, searchParams } = url

if (protocol !== 'prisma:') {
throw new InvalidDatasourceError('Datasource URL should use prisma:// protocol', {
throw new InvalidDatasourceError('Datasource URL should use prisma:// protocol. If you are not using the Data Proxy, remove the `dataProxy` from the `previewFeatures` in your schema and ensure that `PRISMA_CLIENT_ENGINE_TYPE` environment variable is not set to `dataproxy`.', {
clientVersion: this.clientVersion,
})
}
Expand Down

0 comments on commit d026f29

Please sign in to comment.