release v4.3.0

This commit is contained in:
debugtalk
2022-10-21 22:22:00 +08:00
parent 1f7737d0e7
commit be523eda0c
30 changed files with 53 additions and 35 deletions
+5
View File
@@ -134,6 +134,11 @@ var errorsMap = map[error]int{
OCRTextNotFoundError: 84,
}
func IsErrorPredefined(err error) bool {
_, ok := errorsMap[err]
return ok
}
func GetErrorCode(err error) (exitCode int) {
if err == nil {
return Success