Skip to content

Commit

Permalink
Improve error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 5, 2024
1 parent 414ec00 commit 217915b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Squidex.CLI/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<PackageTags>Squidex HeadlessCMS</PackageTags>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>13.3</Version>
<Version>13.4</Version>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public UploadPipeline(ISession session, ILogger log, IFileSystem fs)
log.ProcessCompleted(process);
}
}
catch (SquidexException ex) when (ex.StatusCode == 413)
{
log.ProcessFailed(process, "File is too large. Increase max asset size in your deployment settings.");
}
catch (FileNotFoundException)
{
log.ProcessFailed(process, "File not found.");
Expand Down

0 comments on commit 217915b

Please sign in to comment.