Hello!
I am writing a remote module for cPanel,
using this documentation:
How to Write dnsadmin Plugin Remote Modules
My module is going to control external name servers,
create and replace zone files, etc.
But i do not understand how to report errors to cPanel's engine.
For example, I tried to `return ($Cpanel::NameServer::Constants::ERROR_GENERIC, $errmsg)`
from removezone() but this had no effect on the panel behavior.
Am I doing anything wrong?
How do I report error that occured in a "remote module"?
How can I change the status icon from green disk to red one?
Why does substring 'Unable to remove' in my module's output has
a magical effect to this icon (changes to a triangle with an exclamation mark)?
I am writing a remote module for cPanel,
using this documentation:
How to Write dnsadmin Plugin Remote Modules
My module is going to control external name servers,
create and replace zone files, etc.
But i do not understand how to report errors to cPanel's engine.
For example, I tried to `return ($Cpanel::NameServer::Constants::ERROR_GENERIC, $errmsg)`
from removezone() but this had no effect on the panel behavior.
Am I doing anything wrong?
How do I report error that occured in a "remote module"?
How can I change the status icon from green disk to red one?
Why does substring 'Unable to remove' in my module's output has
a magical effect to this icon (changes to a triangle with an exclamation mark)?