mirror of
https://github.com/fadden/nulib2.git
synced 2024-12-27 17:29:57 +00:00
Complain properly when adding of files fails.
This commit is contained in:
parent
05ffc32db0
commit
18775bbf04
14
nulib2/Add.c
14
nulib2/Add.c
@ -55,10 +55,16 @@ bail:
|
||||
|
||||
if (err == kNuErrNone) {
|
||||
err = NuFlush(pArchive, &flushStatus);
|
||||
if (err != kNuErrNone && err == kNuErrNone) {
|
||||
ReportError(err,
|
||||
"Unable to flush archive changes (status=0x%04lx)",
|
||||
flushStatus);
|
||||
if (err != kNuErrNone) {
|
||||
if (flushStatus & kNuFlushSucceeded) {
|
||||
ReportError(err,
|
||||
"Changes were successfully written, but something "
|
||||
"failed afterward");
|
||||
} else {
|
||||
ReportError(err,
|
||||
"Unable to flush archive changes (status=0x%04lx)",
|
||||
flushStatus);
|
||||
}
|
||||
NuAbort(pArchive);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user