Hi,

I tried to remove an application by executing below REST endpoint. The
return message just say there was an error occurred while removing app. IMO
error=true also implies the same thing.

Error message does not indicate what is the error occurred, rather it says
there is an error. I had to look into backend logs to see what is the error
was. IMO someone who call a REST endpoint should be displayed what is the
exact error occurred to give more information what happened.

 curl -X POST -b cookies
http://localhost:9763/store/site/blocks/application/application-remove/ajax/application-remove.jag
-d "action=removeApplication&application=app2"
*{"message" : "Error occurred while executing the action
removeApplication", "error" : true*}

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to