Make srcpos_{v,}error() more widely useful

Allow them to take a prefix argument giving the general type of error,
which will be useful in future.

Signed-off-by: David Gibson <[email protected]>
3 files changed