If import of CM document fails early with unhelpful error

Created on 28 October 2023, almost 2 years ago

Problem/Motivation

If the check for canImport() throws an exception, the error is not caught and surfaced in a meaningful way.

To resolve this, move the start of the 'try' so that it includes the call of canImport()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @swirt
  • πŸ‡¨πŸ‡¦Canada arakwar

    I have issues importing a CM document, but the error is indeed unhelpful by being empty.

    When I found this issue I thought it cold help, but in ContentModelDocumentationCommands class, the try{} includes the canImport() call.

Production build 0.71.5 2024