[40682] trunk/dports
Joshua Root
jmr at macports.org
Sat Oct 11 01:55:07 PDT 2008
nox wrote:
>> What is the difference between "error" and "return -code error"? I
>> keep learning about new ways of returning errors from ports. It's
>> disconcerting that there are so many ways. :/
>>
>
> None.
> From the manpages, `error string` <=> `return -code error string`
I think technically 'error' generates an error in the current context,
while 'return -code error' generates it in the caller's context. I don't
think there's any practical difference for Portfile purposes.
- Josh
More information about the macports-dev
mailing list