The character `\n` in buildlog stores in package status are escaped and so when we have to replace them with actual line breaker.
Before this PR, CLI functions fatal out when encountering error instead of returning it. Such behavior makes it hard to reuse the functions nor writing unit tests. This PR aims to make functions return errors instead of error out.