mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
posToXML(): Fix displaying paths
This commit is contained in:
parent
48a5879b63
commit
1b8065f255
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ static void printValueAsXML(EvalState & state, bool strict, bool location,
|
|||
|
||||
static void posToXML(EvalState & state, XMLAttrs & xmlAttrs, const Pos & pos)
|
||||
{
|
||||
// FIXME
|
||||
//xmlAttrs["path"] = pos.file;
|
||||
if (auto path = std::get_if<SourcePath>(&pos.origin))
|
||||
xmlAttrs["path"] = path->path.abs();
|
||||
xmlAttrs["line"] = (format("%1%") % pos.line).str();
|
||||
xmlAttrs["column"] = (format("%1%") % pos.column).str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue