error.py 233 B

123456789
  1. #
  2. #Error lookup stuff
  3. def error(type):
  4. print "\x1b[31m", error_lookup[type], "\x1b[39m"
  5. error_lookup = {'bad_command': 'Cannot parse command!\n',
  6. 'block': 'Illegal direction!\n',
  7. 'file': 'File does not exist!'}