couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rogutės Sparnuotos (Updated) (JIRA) <>
Subject [jira] [Updated] (COUCHDB-1326) scanty error message when writing to uri_file fails
Date Mon, 31 Oct 2011 01:56:32 GMT


Rogutės Sparnuotos updated COUCHDB-1326:

    Attachment: 0001-A-more-useful-error-when-writing-to-uri_file-fails.patch

jan on irc said "patches welcome", so here is a bad one (don't know any Erlang):
1. I used Error2, because Error is defined up in scope and erlc complains about unsafe variables.
2. I used throw(), but it produces a trace and I think that Erlang traces scare
   users. Could one do
     echo "Failed to write uri_file %s, error %s."
     exit 1

> scanty error message when writing to uri_file fails
> ---------------------------------------------------
>                 Key: COUCHDB-1326
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Rogutės Sparnuotos
>            Priority: Minor
>         Attachments: 0001-A-more-useful-error-when-writing-to-uri_file-fails.patch
> CouchDB crashes when it fails writing to uri_file (set from the [couchdb] section). The
error message is too vague to understand what's going on: "{{badmatch,{error,enoent}}". At
least the filename should be mentioned.
> P.S.
> I'd say it's all Erlang's fault, because file:write_file() doesn't report the file name
on errors.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message