summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-08-27 18:29:13 +0200
committerHaru <haru@dotalux.com>2013-11-04 03:17:30 +0100
commit7e68906ef18a55cdffcd29730060c108ee9b9bf8 (patch)
treee99a684297e8faa87b9b43c2cd016bf2c6bcdbbe /src/map/script.c
parent6577a59de9b71273fdef0310b21b42d53151e6f3 (diff)
downloadhercules-7e68906ef18a55cdffcd29730060c108ee9b9bf8.tar.gz
hercules-7e68906ef18a55cdffcd29730060c108ee9b9bf8.tar.bz2
hercules-7e68906ef18a55cdffcd29730060c108ee9b9bf8.tar.xz
hercules-7e68906ef18a55cdffcd29730060c108ee9b9bf8.zip
Standardized the format of some NPC parse error messages
- For better machine-parsing of such messages (i.e. in IDEs) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 944759f39..3b0557235 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -1904,9 +1904,9 @@ void script_errorwarning_sub(StringBuf *buf, const char* src, const char* file,
}
if( line >= 0 )
- StrBuf->Printf(buf, "script error on %s line %d\n", file, line);
+ StrBuf->Printf(buf, "script error in file '%s' line %d\n", file, line);
else
- StrBuf->Printf(buf, "script error on %s item ID %d\n", file, -line);
+ StrBuf->Printf(buf, "script error in file '%s' item ID %d\n", file, -line);
StrBuf->Printf(buf, " %s\n", error_msg);
for(j = 0; j < 5; j++ ) {