Ensure we don't ignore errors in LoadPackage.
Ensure we don't ignore errors in LoadPackage.

Create a single instance of error that we can use throughout this
function and return it at the end. The previous implementation was
returning a 'nil' error even if os.Stat() failed which was wrong.

benlau/qpm,benlau/qpm