The bug was caused by an error in the script.
这个故障是由脚本程序出错造成的。
If you run this script, you get the following error.
如果你运行这段脚本,你会获得如下错误。
This script deals with only one possible error: a failure to connect to the database.
这个脚本只处理一个可能的错误:数据库连接故障。
Once the user submits this form, the script first checks whether one or more search keywords were entered, and halts script processing with an error message if it finds none.
当用户提交该表单后,脚本首先检查是否输入了一个或多个搜索关键字,如果一个也没有输入,则中断脚本处理并显示一条错误消息。
Running this script returns the following error.
运行这段脚本会获得如下错误。
If there are problems, the build script outputs an error message; these are very descriptive, so you shouldn't have any problem correcting any errors.
如果有问题,则构建脚本输出错误消息;这些错误消息都描述得很清楚,所以您应该可以更正任何错误。
You will get an unexpected token error if you run the script after you stopped syntax validation.
如果您停止语法验证而运行这个脚本,您会得到未知字符的错误。
If doesn't exist, exit the command or script and display the error message set with.
如果不存在,就退出命令或脚本并显示用设置的错误消息。
Not adding this line in the script will create a pop-up error while connecting to the instance using VNC.
如果不在脚本中增加此行,将会导致在采用VNC连接实例时出现弹出错误。
Hence, with no password entered, the function is passed an uninitialized variable and a script error results.
因此,若无密码键入,传递到该函数的是未初始化的变量和脚本错误结果。
V8 will throw an exception if an error occurs - for example, when a script or function attempts to read a property that does not exist, or if a function is called that is not a function.
当错误发生时,v8会抛出一个异常。比如,当一个脚本或者函数试图去访问一个并不存在的属性,或者调用一个并不是函数的函数。
If doesn't exist or is NULL, exit the command or script and display the error message set with.
如果不存在或者是NULL,就退出命令或脚本并显示用设置的错误消息。
If the copy is unsuccessful, then the script exits with a message, detailing the error.
如果复制失败,那么脚本将退出并显示一条消息,对错误进行详细说明。
This script shown in Listing 4 has no error checking and is not very robust, but it illustrates our point.
该脚本如清单4所示,它没有任何错误检查机制,也不是非常稳定,但是它足以满足我们的演示需要。
Be sure your script is protected from an error; if the method call fails, it throws an exception.
要确保脚本能够应对错误;如果方法调用失败,它会抛出异常。
Always follow the same steps: build your script header, define your variables, and error check your work.
请始终遵循同样的步骤:构建您的脚本标头,定义变量,然后对您的工作进行错误检查。
The END() subroutine executes when the script terminates and ensures that a DBI error message about not explicitly disconnecting from the database doesn't occur.
当脚本终止并且确保没有出现关于数据库未显式分离的 DBI错误消息时, END()子例程就会执行。
Clearly, any error would be fixed before the script is run again.
显然,应在重新运行脚本之前修复所有错误。
Using the approach in Listing 1, the script exits if there is any error in the copy process, thus not allowing the script to carry on processing if there is an error.
在使用清单1中的方法时,如果复制过程发生任何错误,那么脚本将退出,以阻止脚本在出现错误后继续执行。
In the case of failure to connect to the database, the script reports the error to the phone.
如果出现数据库连接故障,脚本将向电话报告错误。
There is no need to worry if an error occurs while you are deploying a change management script.
如果在部署修改管理脚本时出现了错误,也不必担心。
The less the script user has to enter, the lower the probability of introducing human error.
用户输入的内容越少,导致人工错误的可能性就越低。
Use script to identify what you really need or find error conditions.
使用脚本确定真正需要的内容或查找错误条件。
No error message is generated, because you generated the script using the -ct option.
未产生错误消息,这是因为您使用了- ct选项生成脚本。
However, when executing the script initially, the following error is displayed.
但是,初次执行这个脚本时,显示以下错误。
If the mkdir fails, the script dies with an appropriate error message.
如果mkdir失败,则该脚本终止并显示适当的错误消息。
It's a safe bet that in a script this small, the error may be in the actual if statement.
对于这个小脚本,可以很有把握地猜测错误可能出现在实际的if语句中。
If you're developing a configure script, make sure you give a meaningful error message.
如果您正在开发configure脚本,您需要确保您给出的错误消息有意义。
File to run the MetaphoneSuggest script instead of displaying a 404 error page. For example, if your default httpd.conf.
要运行metaphonesuggestscript脚本,我们需要对httpd .conf文件进行适当修改,否则将显示404错误页面。
The leading colon in this example tells getopts to be silent and suppress the normal error messages, as this script will provide its own error handling.
此例中的前导冒号告诉getopts 保持静默(silent)并抑制正常的错误消息,因为此脚本将提供它自己的错误处理。
应用推荐