mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-21 13:32:39 +02:00
npdmtool: more informative error message
This commit is contained in:
parent
1308dd10e5
commit
5d31040ae1
@ -834,7 +834,7 @@ int CreateNpdm(const char *json, void **dst, u32 *dst_size) {
|
||||
cJSON_GetBoolean(value, "force_debug", &force_debug);
|
||||
cJSON_GetBoolean(value, "force_debug_prod", &force_debug_prod);
|
||||
if ( allow_debug + force_debug + force_debug_prod > 1 ) {
|
||||
fprintf(stderr, "Only one debug flag can be set!\n");
|
||||
fprintf(stderr, "Only one of allow_debug, force_debug, or force_debug_prod can be set!\n");
|
||||
status = 0;
|
||||
goto NPDM_BUILD_END;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user