nashtech-garage/yas

[Backoffice] Throw generic error when create/edit product variant and unnecessary redirect to homepage

Closed this issue · 1 comments

In backoffice, when creating new Product or editing Product, when try to add new product variation, it has checked for GTIN & SKU exist in database or not.
image

But instead of stay in page and notify user, it redirect to home page, and throw generic error " UPDATE FAILED " -> make user don't know which error caused this problem.
image

Expect: Throw detail error that API respone , and stay in create/edit page and let user continue modify.