diff options
author | Melanie | 2012-04-25 01:22:09 +0100 |
---|---|---|
committer | Melanie | 2012-04-25 01:22:09 +0100 |
commit | def65cd94a18115d1a9cb89d735715c1f708a81d (patch) | |
tree | 7fd2c4c5ebb563bf7225d244b80739e9df134566 /OpenSim/Region/ScriptEngine/XEngine | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Comment out some debug ATTACHMENTS log messages for now. (diff) | |
download | opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.zip opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.gz opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.bz2 opensim-SC-def65cd94a18115d1a9cb89d735715c1f708a81d.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-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 5a02d4c..eeb125e 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1902,9 +1902,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1902 | // if there already exists a file at that location, it may be locked. | 1902 | // if there already exists a file at that location, it may be locked. |
1903 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); | 1903 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); |
1904 | } | 1904 | } |
1905 | |||
1906 | string textpath = path + ".text"; | ||
1905 | try | 1907 | try |
1906 | { | 1908 | { |
1907 | using (FileStream fs = File.Create(path + ".text")) | 1909 | using (FileStream fs = File.Create(textpath)) |
1908 | { | 1910 | { |
1909 | using (StreamWriter sw = new StreamWriter(fs)) | 1911 | using (StreamWriter sw = new StreamWriter(fs)) |
1910 | { | 1912 | { |
@@ -1917,7 +1919,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1917 | catch (IOException ex) | 1919 | catch (IOException ex) |
1918 | { | 1920 | { |
1919 | // if there already exists a file at that location, it may be locked. | 1921 | // if there already exists a file at that location, it may be locked. |
1920 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", path, ex.Message); | 1922 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", textpath, ex.Message); |
1921 | } | 1923 | } |
1922 | } | 1924 | } |
1923 | } | 1925 | } |
@@ -1966,7 +1968,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1966 | catch (IOException ex) | 1968 | catch (IOException ex) |
1967 | { | 1969 | { |
1968 | // if there already exists a file at that location, it may be locked. | 1970 | // if there already exists a file at that location, it may be locked. |
1969 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", statepath, ex.Message); | 1971 | m_log.ErrorFormat("[XEngine]: File {0} already exists! {1}", mappath, ex.Message); |
1970 | } | 1972 | } |
1971 | } | 1973 | } |
1972 | 1974 | ||