Commit fa608853 authored by dmknght's avatar dmknght

Add error msg to code

parent 593b501b
Pipeline #1442 canceled with stages
......@@ -103,7 +103,7 @@ proc downloadFiles(folder: string, agent: string) =
echo "[*] Saved at \e[96m" & finalPath & "\e[0m"
downloaded += 1
except:
stderr.write("[x] Error while downloading \e[31m" & eachResult.realURL & "\e[0m\n")
stderr.write("[x] Error " & getCurrentExceptionMsg() & " \e[31m" & eachResult.realURL & "\e[0m\n")
if eachResult.cacheURL != "No web cache URL found":
echo "[-] Download from cache is not supported. Please try it manually: " & eachResult.cacheURL
......
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