lib: fix error messages for `check-process`