Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7cc90261
Commit
7cc90261
authored
May 14, 2002
by
Shashi Guruprasad
Browse files
added code to capture errors when syntax checking through NSE
parent
dc019d2d
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/ns2ir/parse.tcl.in
View file @
7cc90261
...
...
@@ -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
\n
errorcode:$errorCode"
if
{
[
catch
{
exec
nse
${
GLOBALS
::
nsfile
}}
errMsg
]
==
1
}
{
perror
"Syntax check with NS failed
\n
errorcode:
$errorCode
\n
error msg: $errMsg
"
}
if
{
${
GLOBALS
::
errors
}
!= 1 } {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment