Commit 7cc90261 authored by Shashi Guruprasad's avatar Shashi Guruprasad

added code to capture errors when syntax checking through NSE

parent dc019d2d
......@@ -393,8 +393,8 @@ proc parse_delay {dspec} {
# We first run the script through NSE to check syntax errors
file copy -force ${GLOBALS::nstbcompat} tb_compat.tcl
if { [catch {exec nse ${GLOBALS::nsfile}}] == 1 } {
perror "Syntax check with NS failed\nerrorcode:$errorCode"
if { [catch {exec nse ${GLOBALS::nsfile}} errMsg] == 1 } {
perror "Syntax check with NS failed\nerrorcode: $errorCode\n error msg: $errMsg"
}
if { ${GLOBALS::errors} != 1 } {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment