Nmap Development mailing list archives

Re: [NSE] Better Handling for Require Errors


From: Fyodor <fyodor () insecure org>
Date: Sun, 12 Jun 2011 14:02:01 -0700

On Sat, Jun 11, 2011 at 10:12:07PM -0400, Patrick Donnelly wrote:
On Sat, Jun 11, 2011 at 9:58 PM, Patrick Donnelly <batrick () batbytes com> wrote:

I just thought of another possibility. Since we added the
stdnse.require function which is just the original function. Maybe
instead we can keep require the same and add a stdnse.silent_require
(so reverse them). Then people would use:

stdnse.silent_require "openssl"

I think that might be the best approach. What do you all think?

That sounds great to me.

Cheers,
-F
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: