Merge pull request #7055 from VOREStation/vplk-debug-master

Debug Master Controller
This commit is contained in:
Aronai Sieyes
2020-03-30 21:07:03 -04:00
committed by GitHub
5 changed files with 27 additions and 9 deletions
+4 -4
View File
@@ -51,12 +51,12 @@ GLOBAL_VAR_INIT(total_runtimes_skipped, 0)
// First, try to make better src/usr info lines
if(istype(e_src))
srcinfo = list(" src: [log_info_line(e_src)]")
locinfo = log_info_line(e_src)
if(locinfo)
srcinfo += " src.loc: [locinfo]"
var/atom/atom_e_src = e_src
if(istype(atom_e_src))
srcinfo += " src.loc: [log_info_line(atom_e_src.loc)]"
if(istype(usr))
usrinfo = list(" usr: [log_info_line(usr)]")
locinfo = log_info_line(usr)
locinfo = log_info_line(usr.loc)
if(locinfo)
usrinfo += " usr.loc: [locinfo]"
// The proceeding mess will almost definitely break if error messages are ever changed
+1
View File
@@ -25,6 +25,7 @@ The proc you're attemping should return nonzero values on success.
catch(var/exception/e)
error("attempt_vr runtimed when calling [procname] on [callon].")
error("attempt_vr catch: [e] on [e.file]:[e.line]")
log_runtime(e)
return 0
/*