Explorar o código

slang.tcl: Say no definitions found when we receive 404

Will Storey %!s(int64=8) %!d(string=hai) anos
pai
achega
caf9164b08
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      slang.tcl

+ 4 - 0
slang.tcl

@@ -194,6 +194,10 @@ proc ::ud::http_fetch {url page} {
 		return [::ud::http_fetch $new_url $page]
 	}
 
+	if {$ncode == 404} {
+		error "No definitions found."
+	}
+
 	if {$ncode != 200} {
 		error "HTTP fetch error. Code: $ncode"
 	}