how to send custom return messages from functions?
<p>I am having a function that does a DB operation and sends a <code>boolean</code> value for success/failure. suppose it fails, i want to send the failure reason as a return value.</p>

<p>for now, i have defined return value as a string. if it is failure i return <code>"failure: reason"</code> and if it is success, i return <code>"success"</code>. but this is not good practice.</p>
