[Swift-user] Swift error handling

Mihael Hategan hategan at mcs.anl.gov
Mon Dec 17 18:24:20 CST 2012

There is no swift script level error handling at this time.

The swift runtime may (depending on settings) retry failed applications.

There is always the possibility of wrapping an application in a shell
script that deals with errors from the actual application.

As a side note, the FileNotFound error, should not be immediately
visible to the user, but it may appear in the logs. If that's not the
case, it's probably a bug.


On Mon, 2012-12-17 at 16:15 -0800, Thomas wrote:
> Hi,
> I noticed that when a bash script that is being called from a Swift
> script fails (returns error 1), the Swift script will fail and give a
> File Not Found error. Is there an error handling mechanism in Swift
> that lets us know if the bash script is failing and lets us handle it
> in the Swift script?
> Cheers,
> Thomas
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user

More information about the Swift-user mailing list