@@ -474,7 +474,7 @@ int RedisAI_ModelSet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv,
474
474
#ifdef RAI_PRINT_BACKEND_ERRORS
475
475
printf ("ERR: %s\n" , err .detail );
476
476
#endif
477
- int ret = RedisModule_ReplyWithError (ctx , err .detail );
477
+ int ret = RedisModule_ReplyWithError (ctx , err .detail_oneline );
478
478
RAI_ClearError (& err );
479
479
return ret ;
480
480
}
@@ -531,7 +531,7 @@ void *RedisAI_RunSession(void *arg) {
531
531
#ifdef RAI_PRINT_BACKEND_ERRORS
532
532
printf ("ERR: %s\n" , err .detail );
533
533
#endif
534
- int ret = RedisModule_ReplyWithError (ctx , err .detail );
534
+ int ret = RedisModule_ReplyWithError (ctx , err .detail_oneline );
535
535
RAI_ClearError (& err );
536
536
return NULL ;
537
537
}
@@ -844,7 +844,7 @@ int RedisAI_ScriptRun_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
844
844
#ifdef RAI_PRINT_BACKEND_ERRORS
845
845
printf ("ERR: %s\n" , err .detail );
846
846
#endif
847
- int ret = RedisModule_ReplyWithError (ctx , err .detail );
847
+ int ret = RedisModule_ReplyWithError (ctx , err .detail_oneline );
848
848
RAI_ClearError (& err );
849
849
return ret ;
850
850
}
@@ -918,12 +918,11 @@ int RedisAI_ScriptSet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
918
918
RAI_Error err = RAI_InitError ();
919
919
script = RAI_ScriptCreate (device , scriptdef , & err );
920
920
921
- // if (script == NULL){
922
921
if (err .code != RAI_OK ){
923
922
#ifdef RAI_PRINT_BACKEND_ERRORS
924
923
printf ("ERR: %s\n" , err .detail );
925
924
#endif
926
- int ret = RedisModule_ReplyWithError (ctx , err .detail );
925
+ int ret = RedisModule_ReplyWithError (ctx , err .detail_oneline );
927
926
RAI_ClearError (& err );
928
927
return ret ;
929
928
}
0 commit comments