diff options
author | BlueWall | 2012-04-26 16:13:47 -0400 |
---|---|---|
committer | BlueWall | 2012-04-26 16:13:47 -0400 |
commit | fba802bb03b7dee804059eae888b63c88280389c (patch) | |
tree | ca7312919830dd469dfd4e9b739d5291702007e4 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Add a version of osNpcSay that takes a channel number Mantis 5747 (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-fba802bb03b7dee804059eae888b63c88280389c.zip opensim-SC-fba802bb03b7dee804059eae888b63c88280389c.tar.gz opensim-SC-fba802bb03b7dee804059eae888b63c88280389c.tar.bz2 opensim-SC-fba802bb03b7dee804059eae888b63c88280389c.tar.xz |
Merge branch 'master' of /home/opensim/var/repo/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 23a4cf9..a9b6e67 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1812,9 +1812,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1812 | // if there already exists a file at that location, it may be locked. | 1812 | // if there already exists a file at that location, it may be locked. |
1813 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); | 1813 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); |
1814 | } | 1814 | } |
1815 | |||
1816 | string textpath = path + ".text"; | ||
1815 | try | 1817 | try |
1816 | { | 1818 | { |
1817 | using (FileStream fs = File.Create(path + ".text")) | 1819 | using (FileStream fs = File.Create(textpath)) |
1818 | { | 1820 | { |
1819 | using (StreamWriter sw = new StreamWriter(fs)) | 1821 | using (StreamWriter sw = new StreamWriter(fs)) |
1820 | { | 1822 | { |
@@ -1827,7 +1829,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1827 | catch (IOException ex) | 1829 | catch (IOException ex) |
1828 | { | 1830 | { |
1829 | // if there already exists a file at that location, it may be locked. | 1831 | // if there already exists a file at that location, it may be locked. |
1830 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); | 1832 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", textpath, ex.Message); |
1831 | } | 1833 | } |
1832 | } | 1834 | } |
1833 | } | 1835 | } |
@@ -1876,7 +1878,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1876 | catch (IOException ex) | 1878 | catch (IOException ex) |
1877 | { | 1879 | { |
1878 | // if there already exists a file at that location, it may be locked. | 1880 | // if there already exists a file at that location, it may be locked. |
1879 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", statepath, ex.Message); | 1881 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", mappath, ex.Message); |
1880 | } | 1882 | } |
1881 | } | 1883 | } |
1882 | 1884 | ||