Improve error message for attach failure

The error message was previously the same as for launching a process, and
ended up as "cannot execute '(null)'".