mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
(trunk libT) more informative 404 error message when we're unable to load a clutch file
This commit is contained in:
parent
09e19c0da2
commit
25e12d9242
1 changed files with 3 additions and 1 deletions
|
@ -316,7 +316,9 @@ serve_file( struct evhttp_request * req,
|
|||
|
||||
if( errno )
|
||||
{
|
||||
send_simple_response( req, HTTP_NOTFOUND, filename );
|
||||
char * tmp = tr_strdup_printf( "%s (%s)", filename, tr_strerror( errno ) );
|
||||
send_simple_response( req, HTTP_NOTFOUND, tmp );
|
||||
tr_free( tmp );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue