Skip to content

Commit

Permalink
fix(js): Prevent unsafe string concatenation in error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Oct 15, 2024
1 parent 61e283f commit 74e8ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/spaceService.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function addGroupToWorkspace(spaceId, gid) {
'Error groups',
`Impossible to attach the ${error} group to workspace. May be a problem with the connection ?`,
5000)
console.error(`Impossible to attach the ${gid} group to workspace. May be a problem with the connection ?`, error)
console.error(`Impossible to attach the group to workspace. May be a problem with the connection ?`, gid, error)

Check failure on line 124 in src/services/spaceService.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
throw new AddGroupToGroupfolderError('Error to add Space Manager group in the groupfolder')
})
}

0 comments on commit 74e8ada

Please sign in to comment.