Skip to content

Commit

Permalink
bug: add check if camera is opened or not
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Feb 23, 2022
1 parent 26a5091 commit c342985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macos/Classes/MobileScannerPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler,

if (device == nil) {
result(FlutterError(code: "MobileScanner",
message: "No camera found!",
message: "No camera found or failed to open camera!",
details: nil))
return
}
Expand Down

0 comments on commit c342985

Please sign in to comment.