[backend/drive] Improve error handling during DriveService.StoreFile
This commit is contained in:
parent
23cf3cf35f
commit
d7d7b7d2e3
1 changed files with 5 additions and 1 deletions
|
@ -195,6 +195,7 @@ public class DriveService(
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logger.LogDebug("Failed to generate/write thumbnail: {e}", e.Message);
|
logger.LogDebug("Failed to generate/write thumbnail: {e}", e.Message);
|
||||||
|
thumbnailFilename = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,6 +211,7 @@ public class DriveService(
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logger.LogDebug("Failed to generate/write webp: {e}", e.Message);
|
logger.LogDebug("Failed to generate/write webp: {e}", e.Message);
|
||||||
|
webpublicFilename = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -232,6 +234,7 @@ public class DriveService(
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logger.LogDebug("Failed to generate/write thumbnail: {e}", e.Message);
|
logger.LogDebug("Failed to generate/write thumbnail: {e}", e.Message);
|
||||||
|
thumbnailFilename = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,7 +250,8 @@ public class DriveService(
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
logger.LogDebug("Failed to generate/write thumbnail: {e}", e.Message);
|
logger.LogDebug("Failed to generate/write webp: {e}", e.Message);
|
||||||
|
webpublicFilename = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue