release v4.3.0

This commit is contained in:
debugtalk
2022-10-21 21:57:54 +08:00
parent c200ef6900
commit a51c21b492
30 changed files with 53 additions and 35 deletions

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