Script-Fu API command (gimp-palette-get-by-name "name") returns an error if the palette does not exist
Environment/Versions
- GIMP version: 2.99.17, built from source
- Operating System: Linux
Description of the bug
(gimp-palette-get-by-name "name") returns an error if the palette does not exist
> (gimp-palette-get-by-name "fountain")
("fountain")
> (gimp-palette-get-by-name "fount")
Error: Procedure execution of gimp-palette-get-by-name failed on invalid input arguments: Palette 'fount' not found
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- open the Script-Fu console
- (gimp-palette-get-by-name "unlikelyname")
- error message
Expected result: #f
Actual result: error message