Skip to content

Commit

Permalink
fix: include error message when workspace already taken
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmat committed Nov 26, 2024
1 parent d291d2b commit 3c985f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/trench/src/workspaces/workspaces.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class WorkspacesService {
const existingWorkspace = await this.getWorkspaceByName(name)

if (existingWorkspace) {
throw new BadRequestException('Workspace name already taken')
throw new BadRequestException(`Workspace name '${name}' already taken`)
}

// create the database
Expand Down

0 comments on commit 3c985f8

Please sign in to comment.