Opened 10 years ago

Closed 9 years ago

#865 closed defect (fixed)

wcs client errors should not be literals

Reported by: Vlad Merticariu Owned by: Alex Toader
Priority: minor Milestone: Future
Component: applications Version: development
Keywords: Cc:
Complexity: Medium

Description

The client is using literals, such as:
+ throw new Error("You must indicate a coverage source.");
+ message: "Could not delete the coverage. Server responded with:<br/><b><i> " + exceptionCode + ": " + exceptionText + "</i></b>",
+ level: "danger"

This will prevent from customization. Also, error handling seems not always consistent.

Please use symbolic constants instead of literals.

Change History (1)

comment:1 by Alex Toader, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.