Skip to content

Commit

Permalink
Improve error message with available encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Sep 10, 2024
1 parent 17902c3 commit c8568a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Optional<QueryDataEncoder.Factory> select(List<String> encodingIds)
return Optional.of(encoders.get(encodingId));
}
}
log.warn("None of the requested spooled encodings '%s' are known to the server", encodingIds);
log.warn("Requested one of the spooled encodings: %s, but these are only available: %s", encodingIds, encoders.getAvailableEncodings());
return Optional.empty();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ public QueryDataEncoder.Factory get(String encodingId)

return factories.get(encodingId);
}

public Set<String> getAvailableEncodings()
{
return factories.keySet();
}
}

0 comments on commit c8568a9

Please sign in to comment.