- except IOError:
- raise error.TICError('cannot read meta file: %s' % path)
- except:
- raise error.TICError('yaml format error of meta file: %s' % path)
+ except IOError as err:
+ logger(err)
+ raise error.TICError(configmgr.message['server_error'])
+ except yaml.YAMLError as err:
+ logger(err)
+ raise error.TICError(configmgr.message['recipe_parse_error'] % os.path.basename(path))