erofs-utils: Add missing error code handling

Handling error conditions that are missed in few scenarios.
also, mkfs command should return 1 on failure and 0 on success.

Signed-off-by: Pratik Shinde <pratikshinde320@gmail.com>
2 files changed