'Abort the process with error message.
This is just the wrapper of module.fail_json().
Args:
msg: The error message.'

def abort(self, msg):

    error_msg = ['Error    message:', msg]
    if (len(self.msg) > 0):
        error_msg.append('Other    message(s):')
        error_msg.extend(self.msg)
    self.module.fail_json(msg='\n'.join(error_msg))
