FEAT: Improved print-error function