Error handling is currently only partially and poorly done. Do it overall and properly. Create an error type to aggregate errors, fail gracefully rather than panic, etc. If the logger is already in place, well, make good use of it.