feat(RES-43): Fix du warning magick convert (#16)
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good

Reviewed-on: #16
This commit is contained in:
2025-05-05 10:36:51 +02:00
parent ccda606af5
commit 166026a766
50 changed files with 334 additions and 166 deletions

View File

@ -15,6 +15,7 @@ enum ImagesError: Error {
case unknownImageExtension(String)
case getFileAttributed(String, String)
case rsvgConvertNotFound
case magickConvertNotFound
case writeFile(String, String)
case createAssetFolder(String)
case unknown(String)
@ -39,6 +40,9 @@ enum ImagesError: Error {
case .rsvgConvertNotFound:
return "error: [\(Images.toolName)] Can't find rsvg-convert (can be installed with 'brew remove imagemagick && brew install librsvg')"
case .magickConvertNotFound:
return "error: [\(Images.toolName)] Can't find magick or convert (can be installed with 'brew install imagemagick')"
case let .writeFile(subErrorDescription, filename):
return "error: [\(Images.toolName)] An error occured while writing content to \(filename): \(subErrorDescription)"