Revision e2cf65d3

b/image_creator/util.py
49 49
        return find_sbin_command(command, e)
50 50

  
51 51

  
52
def error(msg):
53
    puts_err(colored.red("Error: %s\n" % msg))
52
def error(msg, new_line=True):
53
    puts_err(colored.red("Error: %s\n" % msg), new_line)
54 54

  
55 55

  
56
def warn(msg):
57
    puts_err(colored.yellow("Warning: %s" % msg))
56
def warn(msg, new_line=True):
57
    puts_err(colored.yellow("Warning: %s" % msg), new_line)
58 58

  
59 59

  
60
def success(msg):
61
    puts(colored.green(msg))
60
def success(msg, new_line=True):
61
    puts(colored.green(msg), new_line)
62 62

  
63 63

  
64 64
def progress_generator(label='', n=100):

Also available in: Unified diff