mirror of
https://github.com/fadden/nulib2.git
synced 2025-01-15 23:31:40 +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) {
|
if (err == kNuErrNone) {
|
||||||
err = NuFlush(pArchive, &flushStatus);
|
err = NuFlush(pArchive, &flushStatus);
|
||||||
if (err != kNuErrNone && err == kNuErrNone) {
|
if (err != kNuErrNone) {
|
||||||
ReportError(err,
|
if (flushStatus & kNuFlushSucceeded) {
|
||||||
"Unable to flush archive changes (status=0x%04lx)",
|
ReportError(err,
|
||||||
flushStatus);
|
"Changes were successfully written, but something "
|
||||||
|
"failed afterward");
|
||||||
|
} else {
|
||||||
|
ReportError(err,
|
||||||
|
"Unable to flush archive changes (status=0x%04lx)",
|
||||||
|
flushStatus);
|
||||||
|
}
|
||||||
NuAbort(pArchive);
|
NuAbort(pArchive);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user