From caed5bd75792f4b3f472f1e3ee44ee8dabab03a8 Mon Sep 17 00:00:00 2001 From: m3rein Date: Sat, 5 Sep 2020 21:22:23 +0200 Subject: [PATCH] Changed Username alias from `...` to `USERNAME`. --- Data/Scripts/021_Compiler/001_Compiler.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/021_Compiler/001_Compiler.rb b/Data/Scripts/021_Compiler/001_Compiler.rb index 9bbdc2a2a..0f5732d30 100644 --- a/Data/Scripts/021_Compiler/001_Compiler.rb +++ b/Data/Scripts/021_Compiler/001_Compiler.rb @@ -61,9 +61,9 @@ def pbPrintException(e) errorlog = RTP.getSaveFileName("errorlog.txt") end File.open(errorlog,"ab") { |f| f.write(premessage); f.write(message) } - errorlogline = errorlog.sub(Dir.pwd + "\\", "") - errorlogline.sub!(Dir.pwd + "/", "") - errorlogline.sub!(pbGetUserName, "...") + errorlogline = errorlog.sub("/", "\\") + errorlogline.sub!(Dir.pwd + "\\", "") + errorlogline.sub!(pbGetUserName, "USERNAME") errorlogline = "\r\n" + errorlogline if errorlogline.length > 20 errorlogline.gsub!("/", "\\") print("#{message}\r\nThis exception was logged in #{errorlogline}.\r\nPress Ctrl+C to copy this message to the clipboard.")