public static void LogError(UUID id, string error) { lock (Errors) { //var id = o.ID; ErrorInfo err; if (!Errors.TryGetValue(id, out err)) { err = Errors[id] = new ErrorInfo(id) {}; } err.Add(error); Exporting.Failure(error); } }
public static void LogError(SimObject o, string error) { lock(Errors) { var id = o.ID; ErrorInfo err; if (!Errors.TryGetValue(o.ID, out err)) { err = Errors[id] = new ErrorInfo(id) {Obj = o}; } err.Add(error); Exporting.Failure(error); } }