Add error check
This commit is contained in:
parent
5cb9bdd6dd
commit
bdfae19796
|
@ -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]]\","
|
||||
|
|
Loading…
Reference in New Issue