db/simple: use second Error instance in Open()
Don't need to clear the caller-specified one.
This commit is contained in:
parent
304d78a4c8
commit
83cc6c0835
@ -208,11 +208,11 @@ try {
|
||||
borrowed_song_count = 0;
|
||||
#endif
|
||||
|
||||
if (!Load(error)) {
|
||||
delete root;
|
||||
Error error2;
|
||||
if (!Load(error2)) {
|
||||
LogError(error2);
|
||||
|
||||
LogError(error);
|
||||
error.Clear();
|
||||
delete root;
|
||||
|
||||
if (!Check(error))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user