mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:27:30 +03:00
tool_setopt: provide helper output in debug builds
... for when setopt() returns error.
This commit is contained in:
parent
edc89839be
commit
cd7bc174ce
1 changed files with 6 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include "tool_easysrc.h"
|
||||
#include "tool_setopt.h"
|
||||
#include "tool_convert.h"
|
||||
#include "tool_msgs.h"
|
||||
|
||||
#include "memdebug.h" /* keep this as LAST include */
|
||||
|
||||
|
|
@ -315,7 +316,11 @@ CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *config,
|
|||
}
|
||||
}
|
||||
|
||||
nomem:
|
||||
#ifdef DEBUGBUILD
|
||||
if(ret)
|
||||
warnf(config, "option %s returned error (%d)\n", name, (int)ret);
|
||||
#endif
|
||||
nomem:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue