Skip to content

Commit

Permalink
Merge pull request wildfly#17353 from soul2zimate/WFLY-18703-main
Browse files Browse the repository at this point in the history
[WFLY-18703] Correct misleading error message for XA DataSource class
  • Loading branch information
bstansberry authored Oct 30, 2023
2 parents cfacd59 + c7edc63 commit bd93bc5
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 bd93bc5

Please sign in to comment.