Refactoring dumpTextPass's error handling