Fix error handling bug

If current_process is a string it of course doesn't have the other stuff.