Fix uninitialized value warning

This commit is contained in:
Eelco Dolstra 2013-09-30 10:01:09 +00:00
parent af2b0c8bad
commit 4dd1197d89

View file

@ -49,7 +49,7 @@ sub setJobsetError {
$jobset->update({ errormsg => $errorMsg, errortime => time, fetcherrormsg => undef }); $jobset->update({ errormsg => $errorMsg, errortime => time, fetcherrormsg => undef });
}); });
}; };
if ($errorMsg ne $prevError) { if (defined $errorMsg && $errorMsg ne ($prevError // "")) {
sendJobsetErrorNotification($jobset, $errorMsg); sendJobsetErrorNotification($jobset, $errorMsg);
} }
} }