fixed issue #5029 , add deserializer message

This commit is contained in:
jianghang.loujh
2024-02-04 13:28:27 +08:00
parent e2a64daad8
commit 348d218120
3 changed files with 4 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ public class CanalMessageSerializerUtil {
}
}
} catch (Exception e) {
throw new RuntimeException("Error when serializing message to byte[] ");
throw new RuntimeException("Error when serializing message to byte[] by " + e.getMessage() , e);
}
return null;
}
@@ -125,7 +125,7 @@ public class CanalMessageSerializerUtil {
}
}
} catch (Exception e) {
throw new CanalClientException("deserializer failed", e);
throw new CanalClientException("deserializer failed by " + e.getMessage(), e);
}
}
}