In addition to noticing that my TAB Settings don't match those of whoever wrote this file, you'll see several of the standard error values, their symbolic names, and a brief comment describing each.
The advantage to doing this is noted in the comment at the end of the function: "do any other error logging things here."
这样做的好处已在函数末尾处的注释中提到:“在这里进行任何其他日志记录操作。”
3
The die statement is particularly useful if you don't want to have to comment out your code, and you only want everything up to the error and the error displayed and nothing after.