3247-refactor(ticket): add more text in the error when change zone #841
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#841
Loading…
Reference in New Issue
No description provided.
Delete Branch "3247-ticket_basic-data"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -84,2 +84,2 @@
if (!zoneShipped || zoneShipped.zoneFk != args.zoneId)
throw new UserError(`You don't have privileges to change the zone`);
if (!zoneShipped || zoneShipped.zoneFk != args.zoneId) {
throw new UserError(`You don't have privileges to change the zone
there are some typos on the error message, here's the correction:
'You don't have privileges to change the zone or for these parameters there are more than one shipping options, talk to agencies'
Also try extracting long arguments to constants.
LGTM