aboutsummaryrefslogtreecommitdiff
path: root/tests/errors.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors.tcl')
-rw-r--r--tests/errors.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/errors.tcl b/tests/errors.tcl
index a544faf..7f5cdc8 100644
--- a/tests/errors.tcl
+++ b/tests/errors.tcl
@@ -26,6 +26,9 @@ proc error_generator {type} {
badpackage {
package require bogus
} \
+ returncode {
+ return -code error failure
+ } \
default {
puts "Unknown type=$type"
}
@@ -34,9 +37,6 @@ proc error_generator {type} {
-
-
-
# line 40: Some empty lines above so that line numbers don't change
proc error_caller {type {method call}} {
switch $method \