Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1525

Need better error handling for module info shell command

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2 TRIAGE
    • Component/s: CLI
    • Labels:
      None
    • Story Points:
      1
    • Rank (Obsolete):
      1859

      Description

      Would be better to provide a more useful message, e.g. "The module name must be of the form <module-type>:<module-name>"
      xd:>module info --name time
      java.lang.StringIndexOutOfBoundsException: Failed to convert 'time' to type QualifiedModuleName for option 'name,'
      String index out of range: -1
      xd:>module info --name sink/time
      java.lang.StringIndexOutOfBoundsException: Failed to convert 'sink/time' to type QualifiedModuleName for option 'name,'
      String index out of range: -1
      xd:>module info --name sink:time
      Command failed org.springframework.xd.rest.client.impl.SpringXDException: NullPointerException

      xd:>module info --name source:time
      Information about source module 'time':

        Attachments

          Activity

            People

            Assignee:
            eric.bottard Eric Bottard
            Reporter:
            dturanski David Turanski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: