Error messages can be better
Closed this issue · 1 comments
vindarel commented
I receive:
Transmission server signaled an error: "NIL".
[Condition of type CL-TRANSMISSION:TRANSMISSION-ERROR]
Restarts:
0: [RETRY-REQUEST] Retry the request to transmission server with the same arguments
1: [RETRY] Retry SLIME REPL evaluation request.
2: [*ABORT] Return to SLIME's top level.
3: [REMOVE-FD-HANDLER] Remove #<SB-IMPL::HANDLER INPUT on descriptor 4: #<CLOSURE (LABELS SWANK/SBCL::RUN :IN SWANK/BACKEND:ADD-FD-HANDLER) {1004C2E76B}>>
4: [ABORT] Exit debugger, returning to top level.
Backtrace:
0: (CL-TRANSMISSION::%TRANSMISSION-REQUEST #<CL-TRANSMISSION:TRANSMISSION-CONNECTION {1002B26C13}> "torrent-add" #<HASH-TABLE :TEST EQUAL :COUNT 1 {1007AAA0A3}>)
Locals:
CL-TRANSMISSION::ARGUMENTS = #<HASH-TABLE :TEST EQUAL :COUNT 1 {1007AAA0A3}>
CL-TRANSMISSION::ARGUMENTS#1 = NIL
CL-TRANSMISSION::CODE = 401
CL-TRANSMISSION::CODE#1 = 401
CL-TRANSMISSION::CONN = #<CL-TRANSMISSION:TRANSMISSION-CONNECTION {1002B26C13}>
CL-TRANSMISSION::CONTENT = "{\"method\":\"torrent-add\",\"arguments\":{\"filename\":\"magnet:?xt=urn:btih:F6005B15F186AC4A1F842F80F8110765DB0F96D9&dn=Control+by+Matrix+%26amp%3B+Futurebound+marshall&tr=http%3A%2F%2Ftracker.fxne..
CL-TRANSMISSION::CONTENT-HASH = #<HASH-TABLE :TEST EQUALP :COUNT 2 {1007AAA4E3}>
CL-TRANSMISSION::ERROR-STRING = NIL
CL-TRANSMISSION::HEADERS = ((:SERVER . "Transmission") (:WWW-AUTHENTICATE . "Basic realm=\"Transmission\"") (:DATE . "Wed, 19 Jun 2019 23:48:48 GMT") (:CONTENT-LENGTH . "43") (:CONTENT-TYPE . "text/html; charset=ISO-8859-1") ....
CL-TRANSMISSION::HEADERS#1 = ((:SERVER . "Transmission") (:WWW-AUTHENTICATE . "Basic realm=\"Transmission\"") (:DATE . "Wed, 19 Jun 2019 23:48:48 GMT") (:CONTENT-LENGTH . "43") (:CONTENT-TYPE . "text/html; charset=ISO-8859-1") ....
METHOD = "torrent-add"
CL-TRANSMISSION::RES = #<HASH-TABLE :TEST EQL :COUNT 0 {1007AB8493}>
CL-TRANSMISSION::RES#1 = "<h1>401: Unauthorized</h1>Unauthorized User"
So I can see a 401 return code and an Unauthorized User
text in the backtrace, but that could be more user friendly.
thanks!
vindarel commented
Thanks :)