You can use Tcl's catch to react to errors like so: if { [catch {database -open nc_waves} ] } { puts "Database already open?"}Image may be NSFW.
Clik here to view.
Clik here to view.
