BTW, you shouldn't do "sudo build-package", it's better to use fakeroot:
dpkg-buildpackage -rfakeroot (add -b if you only want to build binary packages)
also, if you want to capture errors, you should type "> file.txt 2>&1" after the command, e.g.:
dpkg-buildpackage -b -rfakeroot > /tmp/out.txt 2>&1
BTW, you shouldn't do "sudo build-package", it's better to use fakeroot:
dpkg-buildpackage -rfakeroot (add -b if you only want to build binary packages)
also, if you want to capture errors, you should type "> file.txt 2>&1" after the command, e.g.:
dpkg-buildpackage -b -rfakeroot > /tmp/out.txt 2>&1