Skip to content

Commit

Permalink
Update Sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Apr 27, 2021
1 parent d02bcc4 commit 325e38b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/BrightroomEngine/Engine/ImageTool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ enum ImageTool {
c.draw(sourceImage, in: .init(origin: .zero, size: targetSize))
}
.makeImage()
EngineSanitizer.global.onDidFindRuntimeError(.failedToCreateResizedCGImage)
EngineSanitizer.global.onDidFindRuntimeError(.failedToCreateResizedCGImage(sourceImage: sourceImage, maxPixelSize: maxPixelSize))
return image
} catch {
EngineSanitizer.global.onDidFindRuntimeError(.failedToCreateCGContext(sourceImage: sourceImage))
Expand Down
2 changes: 1 addition & 1 deletion Sources/BrightroomEngine/Library/EngineSanitizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Foundation
import CoreGraphics

public enum EngineRuntimeError: Swift.Error {
case failedToCreateResizedCGImage
case failedToCreateResizedCGImage(sourceImage: CGImage, maxPixelSize: CGFloat)
case failedToCreateCGContext(sourceImage: CGImage)
}

Expand Down
4 changes: 2 additions & 2 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ or alternatively using `brew install fastlane`
fastlane ios build_demo_apps
```
Description of what the lane does
### ios run_tests
### ios run_all_tests
```
fastlane ios run_tests
fastlane ios run_all_tests
```


Expand Down

0 comments on commit 325e38b

Please sign in to comment.