fix(sync): 修复错误信息没有吐出到控制台
This commit is contained in:
@@ -111,8 +111,10 @@ public class TypeConverterV2 implements TypeConverter {
|
||||
return NULLABLE_STRING_SCHEMA;
|
||||
}
|
||||
} catch (Throwable throwable) {
|
||||
logger.error(StrUtil.format("Convert type failure {} {} {} length: {} scala: {}", table, field, type, length, scala), throwable);
|
||||
throw throwable;
|
||||
throw new RuntimeException(
|
||||
StrUtil.format("Convert type failure {} {} {} length: {} scala: {}", table, field, type, length, scala),
|
||||
throwable
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,8 +176,10 @@ public class TypeConverterV2 implements TypeConverter {
|
||||
return value;
|
||||
}
|
||||
} catch (Throwable throwable) {
|
||||
logger.error(StrUtil.format("Convert value failure {} {} {}", schema.toString(), name, value), throwable);
|
||||
throw throwable;
|
||||
throw new RuntimeException(
|
||||
StrUtil.format("Convert value failure {} {} {}", schema.toString(), name, value),
|
||||
throwable
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user