Remember what files error spans come from
This commit is contained in:
parent
7bab866eae
commit
5d191d0edd
6 changed files with 100 additions and 53 deletions
|
|
@ -202,7 +202,10 @@ impl<'a> CommandState<'a> {
|
|||
self.dated.insert(to, entry);
|
||||
Ok(())
|
||||
} else {
|
||||
Err(Error::MoveWithoutSource { span })
|
||||
Err(Error::MoveWithoutSource {
|
||||
file: self.command.source.file(),
|
||||
span,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue