Rather than using an error code of unknownerror, use the error code returned by EditP...