Skip to content

Commit

Permalink
add mising semi-colon & fix return array
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbowden committed Jul 23, 2023
1 parent 3b7f9b3 commit cf3f613
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions scripts/v6/ch10-07-bad-script.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A simple script to perform a series of tests on a
# list of web sites.

:global Filename "ch10-07-bad-script.rsc"
:global Filename "ch10-07-bad-script.rsc";

# function to log error messages
:global LogMessageFunc do={
Expand Down Expand Up @@ -80,7 +80,7 @@
} on-error={
$LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \
$SiteName !");
:return { "*** test failed ***" }
:return { "duration"="*** test failed ***" }
}
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/v6/ch10-08-bad-script.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A simple script to perform a series of tests on a
# list of web sites.

:global Filename "ch10-08-bad-script.rsc"
:global Filename "ch10-08-bad-script.rsc";

# set DEBUG to "true" for script debugging output,
# "false" for normal operation
Expand Down Expand Up @@ -91,7 +91,7 @@
([:len $SiteName] < 6)) do={
$LogMessageFunc ("GetWebPageFunc: arg value $SiteName not a \
valid string!");
:return { "*** test failed ***" };
:return { "duration"="*** test failed ***" }
}

do {
Expand All @@ -100,7 +100,7 @@
} on-error {
$LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \
$SiteName !");
return { "*** test failed ***" };
:return { "duration"="*** test failed ***" }
}
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/v7/ch10-07-bad-script.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A simple script to perform a series of tests on a
# list of web sites.

:global Filename "ch10-07-bad-script.rsc"
:global Filename "ch10-07-bad-script.rsc";

# function to log error messages
:global LogMessageFunc do={
Expand Down Expand Up @@ -80,7 +80,7 @@
} on-error={
$LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \
$SiteName !");
:return { "*** test failed ***" }
:return { "duration"="*** test failed ***" }
}
}

Expand Down
6 changes: 3 additions & 3 deletions scripts/v7/ch10-08-bad-script.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A simple script to perform a series of tests on a
# list of web sites.

:global Filename "ch10-08-bad-script.rsc"
:global Filename "ch10-08-bad-script.rsc";

# set DEBUG to "true" for script debugging output,
# "false" for normal operation
Expand Down Expand Up @@ -91,7 +91,7 @@
([:len $SiteName] < 6)) do={
$LogMessageFunc ("GetWebPageFunc: arg value $SiteName not a \
valid string!");
:return { "*** test failed ***" };
:return { "duration"="*** test failed ***" }
}

do {
Expand All @@ -100,7 +100,7 @@
} on-error {
$LogMessageFunc ("GetWebPageFunc: unable to retrieve site: \
$SiteName !");
return { "*** test failed ***" };
:return { "duration"="*** test failed ***" }
}
}

Expand Down

0 comments on commit cf3f613

Please sign in to comment.