"open" now writes to standardError and quits when opening a file fails.
Using assert here was a really bad idea since it may not be evaluated in a release build.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
|
||||
import SwiftShell
|
||||
|
||||
let file = open("file which does not exist")
|
||||
print("this is not printed, the script has exited")
|
||||
Reference in New Issue
Block a user