file = assert(io.open("/usr/local/nginx/conf/nginx.conf1", "r"))
本来想用assert来捕获错误的。
但是assert之后还是报500错误。
500 Internal Server Error
error_log 中
2013/07/03 13:29:57 [error] 17540#0: *38 lua entry thread aborted: runtime error: /usr/local/nginx/./conf/ocdn/status.lua:1: /usr/local/nginx/conf/nginx.conf1: No such file or directory
求助怎样才可以使得io.open一个不存在的文件不报错。