Handle storage deletion errors better

This commit is contained in:
crschnick 2024-05-12 07:18:29 +00:00
parent 3ef04b17c9
commit 4fc95833e5

View file

@ -340,7 +340,7 @@ public class StandardStorage extends DataStorage {
gitStorageHandler.handleDeletion(file, uuid.toString()); gitStorageHandler.handleDeletion(file, uuid.toString());
} }
} catch (Exception ex) { } catch (Exception ex) {
ErrorEvent.fromThrowable(ex).omitted(true).build().handle(); ErrorEvent.fromThrowable(ex).expected().omit().build().handle();
} }
}); });
} catch (Exception ex) { } catch (Exception ex) {
@ -373,7 +373,7 @@ public class StandardStorage extends DataStorage {
gitStorageHandler.handleDeletion(file, uuid.toString()); gitStorageHandler.handleDeletion(file, uuid.toString());
} }
} catch (Exception ex) { } catch (Exception ex) {
ErrorEvent.fromThrowable(ex).omitted(true).build().handle(); ErrorEvent.fromThrowable(ex).expected().omit().build().handle();
} }
}); });
} catch (Exception ex) { } catch (Exception ex) {