That's working as expected for me, both in Win11 and macOS.
ETA: Have you chosen
Background mode? That gives me the result you're seeing, which isn't really surprising. In that case, it does show up in the console, though without its explanatory text - it's just a generic "aborted" message.
Yes, it is hidden in background mode and visible if background is turned off. Actually, having recorded the screen and looked at the frames the message doesn't show in the status bar, it is just the 'Make album name' starting.
Whilst it is not 'really surprising', though it got me fair and square, it does warrant either a note in the developers wiki or the API, or both. Before I update the wiki though I'll wait to see what David has to say, maybe there are other method calls that work differently in background mode.
As for this particular case, I will change the code to use a JOptionPane.showMessageDialog followed by OperationAbortedException().