Remember what files error spans come from

This commit is contained in:
Joscha 2021-12-12 20:18:58 +00:00
parent 7bab866eae
commit 5d191d0edd
6 changed files with 100 additions and 53 deletions

View file

@ -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,
})
}
}