]> git.sur5r.net Git - openocd/commitdiff
very slightly improved error message for not being able to find scripts
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 22 Jul 2008 08:58:44 +0000 (08:58 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 22 Jul 2008 08:58:44 +0000 (08:58 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@854 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/startup.tcl

index a76977588e82162f3192344d4ce8df852892e42e..e60ad976f467b2fa1fee7f846a633c10cf2bcbe4 100644 (file)
@@ -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"