summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-22 08:58:44 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-22 08:58:44 +0000
commit81bf9c6255ff26be894148a704692daaf8c667e7 (patch)
tree0e41856b4c4734d6f6d9d25db8aa8c5ae904e773 /src/helper
parentd0f32d0ed5045aa45578d19c5419cf5b323e4891 (diff)
downloadopenocd+libswd-81bf9c6255ff26be894148a704692daaf8c667e7.tar.gz
openocd+libswd-81bf9c6255ff26be894148a704692daaf8c667e7.tar.bz2
openocd+libswd-81bf9c6255ff26be894148a704692daaf8c667e7.tar.xz
openocd+libswd-81bf9c6255ff26be894148a704692daaf8c667e7.zip
very slightly improved error message for not being able to find scripts
git-svn-id: svn://svn.berlios.de/openocd/trunk@854 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/startup.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl
index a7697758..e60ad976 100644
--- a/src/helper/startup.tcl
+++ b/src/helper/startup.tcl
@@ -136,7 +136,7 @@ proc find {filename} {
return $t
}
# make sure error message matches original input string
- return [ocd_find $filename]
+ return -code error "Can't find $filename"
}
add_help_text find "<file> - print full path to file according to OpenOCD search rules"