Commit fafe88a8 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Fix wrong hardcoded msg by mistake

parent e6098dc7
...@@ -44,14 +44,14 @@ proc initFullLogs*(path: string): LogHandler = ...@@ -44,14 +44,14 @@ proc initFullLogs*(path: string): LogHandler =
proc logInfo*(handler: LogHandler, prjName, msg: string) = proc logInfo*(handler: LogHandler, prjName, msg: string) =
# bright cyan # bright cyan
let fullMsg = "[" & prjName & "] Update success" let fullMsg = "[" & prjName & "] " & msg
handler.print.log(lvlInfo, "\e[96m" & fullMsg & "\e[0m") handler.print.log(lvlInfo, "\e[96m" & fullMsg & "\e[0m")
handler.save.log(lvlInfo, "\e[96m" & fullMsg & "\e[0m") handler.save.log(lvlInfo, "\e[96m" & fullMsg & "\e[0m")
proc logErr*(handler: LogHandler, prjName, msg, stderr: string) = proc logErr*(handler: LogHandler, prjName, msg, stderr: string) =
# bright magenta # bright magenta
let fullMsg = "[" & prjName & "] Update success" let fullMsg = "[" & prjName & "] " & msg
handler.print.log(lvlError, "\e[95m" & fullMsg & "\e[0m") handler.print.log(lvlError, "\e[95m" & fullMsg & "\e[0m")
handler.save.log(lvlError, "\e[95m" & fullMsg & "\e[0m\n") handler.save.log(lvlError, "\e[95m" & fullMsg & "\e[0m\n")
if stdErr != "": if stdErr != "":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment