>>> Note that while "ui_error" prints the error message to the screen, it does 
>>> not end processing the port. If you want the port to exit here, which I 
>>> think you do, then you need "return -code error" like you had before.
>> 
>> Yes, done that. I was under the impression that ui_error would do the same 
>> as “return -code error” and do some other things.
> 
> Maybe it should indeed behave like this. Why should the process be continued 
> if an error arises?

Best not to confuse functionality by blending printing and exiting together.

`return -code error` actually returns from processing while `ui_error` (think 
`printf stderr`) is for presentation.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to