[Hackage] #267: cabal upload has poor error messages (just an HTTP response code)

Hackage trac at galois.com
Thu May 1 18:11:43 EDT 2008


#267: cabal upload has poor error messages (just an HTTP response code)
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:        
      Type:  defect         |       Status:  new   
  Priority:  normal         |    Milestone:        
 Component:  Cabal library  |      Version:  HEAD  
  Severity:  normal         |   Resolution:        
  Keywords:                 |   Difficulty:  normal
Ghcversion:  6.8.2          |     Platform:        
----------------------------+-----------------------------------------------
Comment (by duncan):

 Replying to [comment:2 ross]:
 > OK, I can bypass outputError and send the plain text on request.  Then
 cabal upload can stop ignoring it.

 That'd be great.

 At the moment we're sending `Accept: text/plain` and getting `Content-
 Type: text/html; charset=ISO-8859-1` as a response.

 As a note to whoever wants to do the client-side change in future:

 inspect
 {{{
 [ s | Header HdrContentType s <- rspHeaders resp ]
 }}}
 to see if it starts with `"text/plain"` and if so print the `rspBody resp`

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/267#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list