- self.log(2, "'prepare' failed: error %d" % prep_res)
- NavigationInstance.instance.stopRecordService(self.record_service)
- self.record_service = None
- return False
-
- self.log(3, "prepare ok, writing meta information to %s" % self.Filename)
- try:
- f = open(self.Filename + ".ts.meta", "w")
- f.write(rec_ref.toString() + "\n")
- f.write(self.name.replace("\n", "") + "\n")
- f.write(self.description.replace("\n", "") + "\n")
- f.write(str(self.begin) + "\n")
- f.write(' '.join(self.tags))
- f.close()
- except IOError:
- self.log(4, "failed to write meta information")
+ if prep_res == -255:
+ self.log(4, "failed to write meta information")
+ else:
+ self.log(2, "'prepare' failed: error %d" % prep_res)