Skip to content

Commit

Permalink
[WFLY-18703] Correct misleading error message for XA DataSource class
Browse files Browse the repository at this point in the history
  • Loading branch information
soul2zimate committed Oct 30, 2023
1 parent 40dd5c7 commit c7edc63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected void performRuntime(OperationContext context, ModelNode operation, Mod
} catch (ClassNotFoundException e) {
throw SUBSYSTEM_DATASOURCES_LOGGER.failedToLoadDataSourceClass(xaDataSourceClassName, e);
} catch (ClassCastException e) {
throw SUBSYSTEM_DATASOURCES_LOGGER.notAValidDataSourceClass(dataSourceClassName, DataSource.class.getName());
throw SUBSYSTEM_DATASOURCES_LOGGER.notAValidDataSourceClass(xaDataSourceClassName, XADataSource.class.getName());
}
checkDSCls(dsCls, XADataSource.class);
}
Expand Down

0 comments on commit c7edc63

Please sign in to comment.