Skip to content

Improve the error message when invalid formats are used for one-liners #7098

Closed

Description

@seisman

Description of the problem

Note the typo -pnf below. It should be -png. Ideally GMT should report an error like:
"Unrecognized graphics format pnf".

$ gmt basemap -Rg -JH20c -Ba -pnf map
gmt [ERROR]: Shared GMT module not found: basemap

ERROR: No module named basemap was found.  This could mean one of four cases:
  1. There actually is no such module; please check your spelling.
  2. You used a modern mode module name while running in GMT classic mode.
  3. Module exists in the GMT supplemental library, but the library could not be found.
  4. Module exists in a GMT custom library, but none was specified via GMT_CUSTOM_LIBS.
Shared libraries must be in standard system paths or set via environmental parameter LD_LIBRARY_PATH.

System information

  • Operating system: Linux
  • GMT version (gmt --version): 6.5.0_111fa6d_2022.08.11

Activity

  1. added
    bug
    on Nov 21, 2022
  2. added a commit that references this issue on Nov 21, 2022
    d9d8fdd
  3. added this to the 6.5.0 milestone on Nov 21, 2022
  4. added a commit that references this issue on Nov 21, 2022
    2aa7f6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions