yard-sd 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yard-sd/sequence_diagram_mixin.rb +2 -2
- metadata +1 -1
@@ -28,11 +28,11 @@ module SequenceDiagramMixin
|
|
28
28
|
name = "images/diagrams/diagram_#{diagram.uid}.png"
|
29
29
|
options[:serializer].serialize(name, img)
|
30
30
|
|
31
|
-
return "<img src='%s' alt='Sequence diagram' />" % url_for(name)
|
31
|
+
return "<img src='%s' alt='Sequence diagram' />" % url_for(options[:serializer].serialized_path(name))
|
32
32
|
rescue SequenceDiagram::ParseError => e
|
33
33
|
return "Error: Parsing error: #{h(e.inspect)}"
|
34
34
|
rescue => e
|
35
|
-
return "Error: #{h(e.backtrace.inspect)}"
|
35
|
+
return "Error: #{h([e.message, e.backtrace].inspect)}"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|