Don’t keep the error message for successful builds

Any error message here is an error and would only clutter the db
This commit is contained in:
regnat 2021-05-03 16:27:42 +02:00
parent 7cef97144e
commit a1251453e4

View file

@ -387,6 +387,8 @@ void State::buildRemote(ref<Store> destStore,
}
if (result.stepStatus != bsSuccess) return;
result.errorMsg = "";
/* If the path was substituted or already valid, then we didn't
get a build log. */
if (result.isCached) {