Add error check

This commit is contained in:
prpr 2022-04-21 18:00:04 +01:00
parent 5cb9bdd6dd
commit bdfae19796
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ httpheader "application/json"
set file [cgi_get file]
if {$file == 0} exit
set ts [ts fetch $file]
if {$ts == 0} exit
puts "{"
puts "\"title\" : \"[jescape [$ts get title]]\","