Add more user feedback if an object isn't found for which delete was requested.

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2012-01-31 22:27:05 +00:00
parent eb49c356e2
commit 79c2081741
1 changed files with 15 additions and 0 deletions

View File

@ -140,6 +140,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with owner {0}", match);
break; break;
case "creator": case "creator":
@ -152,6 +155,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with creator {0}", match);
break; break;
case "uuid": case "uuid":
@ -164,6 +170,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with uuid {0}", match);
break; break;
case "name": case "name":
@ -173,6 +182,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0)
m_console.OutputFormat("No objects were found with name {0}", o);
break; break;
case "outside": case "outside":
@ -198,6 +210,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
deletes.Add(g); deletes.Add(g);
}); });
if (deletes.Count == 0)
m_console.OutputFormat("No objects were found outside region bounds");
break; break;
} }