nasm.c: better handling of errors without a file without ERR_NOFILE
commit883985def55f9adf63009cea372023753b3b0b54
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 20 Dec 2017 19:32:39 +0000 (20 11:32 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 20 Dec 2017 19:32:39 +0000 (20 11:32 -0800)
tree6b358244c05f84902c8afe8c5e7a6ac203446ee9
parent29dff5a29edfa486bca75ee153a7b6146ebf7c3a
nasm.c: better handling of errors without a file without ERR_NOFILE

We have hardcoded ERR_NOFILE in a number of places which really should
not need them, and it represents loss of information.  Instead, be
robust in the handling either of no filename or no line number.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
asm/nasm.c