Made -abort_on and -report_about complain with bad severity names
This commit is contained in:
parent
a81aa0e2d1
commit
a25963775f
@ -3121,10 +3121,16 @@ int Xorriso_eval_problem_status(struct XorrisO *xorriso, int ret, int flag)
|
||||
int Xorriso_option_abort_on(struct XorrisO *xorriso, char *severity, int flag)
|
||||
{
|
||||
int ret, sev;
|
||||
char sfe[4*SfileadrL];
|
||||
|
||||
ret= Xorriso__text_to_sev(severity, &sev, 0);
|
||||
if(ret<=0)
|
||||
if(ret<=0) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-abort_on: Not a known severity name : %s",
|
||||
Text_shellsafe(severity, sfe, 0));
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(ret);
|
||||
}
|
||||
if(Sfile_str(xorriso->abort_on_text,severity,0)<=0)
|
||||
return(-1);
|
||||
xorriso->abort_on_severity= sev;
|
||||
@ -4548,10 +4554,16 @@ int Xorriso_option_report_about(struct XorrisO *xorriso, char *severity,
|
||||
int flag)
|
||||
{
|
||||
int ret, sev;
|
||||
char sfe[4*SfileadrL];
|
||||
|
||||
ret= Xorriso__text_to_sev(severity, &sev, 0);
|
||||
if(ret<=0)
|
||||
if(ret<=0) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-report_about: Not a known severity name : %s",
|
||||
Text_shellsafe(severity, sfe, 0));
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
|
||||
return(ret);
|
||||
}
|
||||
if(Sfile_str(xorriso->report_about_text,severity,0)<=0)
|
||||
return(-1);
|
||||
xorriso->report_about_severity= sev;
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2007.11.02.143549"
|
||||
#define Xorriso_timestamP "2007.11.02.143658"
|
||||
|
Loading…
Reference in New Issue
Block a user