From: oharboe Date: Tue, 22 Jul 2008 08:58:44 +0000 (+0000) Subject: very slightly improved error message for not being able to find scripts X-Git-Tag: v0.1.0~445 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81bf9c6255ff26be894148a704692daaf8c667e7;p=openocd 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 --- 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 " - print full path to file according to OpenOCD search rules"