Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
🐛 Fix 'tenant-already-exists' message
Browse files Browse the repository at this point in the history
  • Loading branch information
Errorname committed May 26, 2020
1 parent ee9f9e6 commit 2770bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Management {
data: tenant
})
} catch (err) {
if (err.code == 'P2002') throw new PmtError('tenant-already-exists', client.name)
if (err.code == 'P2002') throw new PmtError('tenant-already-exists', tenant.name)
throw err
}
}
Expand Down

0 comments on commit 2770bc4

Please sign in to comment.