[ https://issues.apache.org/jira/browse/COUCHDB-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141093#comment-13141093 ]
Filipe Manana commented on COUCHDB-1326: ---------------------------------------- Thanks Rogutės However the following will not work: + Error2 -> throw(io:format("Failed to write uri_file ~s, error ~p~n", + [UriFile, Error2])) You'll want to call io_lib:format instead, which returns an IOList. Then you should call lists:flatten over the result of io_lib:format to make sure we get a more human readable string. Wanna give it a 2nd try? :) > scanty error message when writing to uri_file fails > --------------------------------------------------- > > Key: COUCHDB-1326 > URL: https://issues.apache.org/jira/browse/COUCHDB-1326 > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira