Compare commits
No commits in common. "7e2d1d8c715b0321b86a4096c485a5a72eeb9cf9" and "d822ae27ae085b57ced6de870183ac9629bb3ebf" have entirely different histories.
7e2d1d8c71
...
d822ae27ae
|
@ -173,10 +173,20 @@ async fn write_to_file(
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file.write_all(&chunk).await.map_err(|write_err| {
|
file.write_all(&chunk)
|
||||||
log::error!("could not write file {:?}", write_err);
|
.await
|
||||||
error::ErrorInternalServerError("could not write file")
|
.map_err(|write_err| match write_err.kind() {
|
||||||
})?;
|
std::io::ErrorKind::StorageFull => {
|
||||||
|
log::warn!("storage is full {:?}", write_err);
|
||||||
|
error::ErrorServiceUnavailable(
|
||||||
|
"storage is full, you will need to wait for some files to expire",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
log::error!("could not write file {:?}", write_err);
|
||||||
|
error::ErrorInternalServerError("could not write file")
|
||||||
|
}
|
||||||
|
})?;
|
||||||
}
|
}
|
||||||
Ok(written_bytes)
|
Ok(written_bytes)
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ authentifizieren
|
||||||
<footer>
|
<footer>
|
||||||
<a
|
<a
|
||||||
class="repo"
|
class="repo"
|
||||||
href="https://git.ctdo.de/neri/datatrash"
|
href="https://repos.ctdo.de/neri/datatrash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<a
|
<a
|
||||||
class="repo"
|
class="repo"
|
||||||
href="https://git.ctdo.de/neri/datatrash"
|
href="https://repos.ctdo.de/neri/datatrash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<a
|
<a
|
||||||
class="repo"
|
class="repo"
|
||||||
href="https://git.ctdo.de/neri/datatrash"
|
href="https://repos.ctdo.de/neri/datatrash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<a
|
<a
|
||||||
class="repo"
|
class="repo"
|
||||||
href="https://git.ctdo.de/neri/datatrash"
|
href="https://repos.ctdo.de/neri/datatrash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<a
|
<a
|
||||||
class="repo"
|
class="repo"
|
||||||
href="https://git.ctdo.de/neri/datatrash"
|
href="https://repos.ctdo.de/neri/datatrash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue