diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index a76977588..e60ad976f 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"