Revision f165adc0 image_creator/util.py
b/image_creator/util.py | ||
---|---|---|
35 | 35 |
import pbs |
36 | 36 |
from clint.textui import colored, progress as uiprogress |
37 | 37 |
|
38 |
|
|
39 |
class FatalError(Exception): |
|
40 |
pass |
|
41 |
|
|
42 |
|
|
38 | 43 |
silent = False |
39 | 44 |
|
40 | 45 |
|
... | ... | |
54 | 59 |
|
55 | 60 |
def error(msg, new_line=True): |
56 | 61 |
nl = "\n" if new_line else '' |
57 |
sys.stderr.write('Error: %s' % msg + nl)
|
|
62 |
sys.stderr.write(colored.red('Error: %s' % msg) + nl)
|
|
58 | 63 |
|
59 | 64 |
|
60 | 65 |
def warn(msg, new_line=True): |
Also available in: Unified diff