Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Use actual file passed when reporting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhs committed Nov 26, 2017
1 parent f058e84 commit 1f9d09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svg/parser.pyi
Expand Up @@ -46,7 +46,7 @@ cdef class Parser:
im._nsvgimage = nsvgParseFromFile(file, units, magnitude)
if im._nsvgimage == NULL:
raise SVGParserError(
"Could not parse SVG from {}".format(filename)
"Could not parse SVG from {}".format(file)
)
else:
return im

0 comments on commit 1f9d09f

Please sign in to comment.