graphviz: show error when lacking permissions
This commit is contained in:
parent
29d53c21ac
commit
7dc0928f52
10
graphviz.tlv
10
graphviz.tlv
|
@ -501,11 +501,13 @@
|
||||||
- __teliva_timestamp: original
|
- __teliva_timestamp: original
|
||||||
read_dot_file:
|
read_dot_file:
|
||||||
>function read_dot_file(filename)
|
>function read_dot_file(filename)
|
||||||
> local infile = start_reading(nil, filename)
|
|
||||||
> local chars = graphviz_buffered_reader(infile)
|
|
||||||
> local tokens = graphviz_tokenizer(chars)
|
|
||||||
> local graph = {}
|
> local graph = {}
|
||||||
> parse_graph(tokens, graph)
|
> local infile = start_reading(nil, filename)
|
||||||
|
> if infile then
|
||||||
|
> local chars = graphviz_buffered_reader(infile)
|
||||||
|
> local tokens = graphviz_tokenizer(chars)
|
||||||
|
> parse_graph(tokens, graph)
|
||||||
|
> end
|
||||||
> return graph
|
> return graph
|
||||||
>end
|
>end
|
||||||
- __teliva_timestamp: original
|
- __teliva_timestamp: original
|
||||||
|
|
Loading…
Reference in New Issue