Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Display error message if imsmanifest.xml can't be found #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mojocakes
Copy link

Context
I was getting a blank white screen whenever I dropped my .imscc file onto the page.

After some debugging I realised that I was building my export file incorrectly; file paths were being prepended with a / (so /imsmanifest.xml instead of imsmanifest.xml)

This was clearly an error on my side, but I think the app should still display an error message to tell the user that their file is not a valid Common Cartridge.

Changes
Display error message if the imsmanifest.xml file can't be extracted.

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2021

CLA assistant check
All committers have signed the CLA.

@@ -205,7 +205,7 @@ export default class CommonCartridge extends Component {
entry => entry.filename === "imsmanifest.xml"
);

if (manifestEntry != null) {
if (manifestEntry) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value is undefined if not found

@mojocakes
Copy link
Author

Bump? ;)

@akozma89
Copy link
Collaborator

akozma89 commented Jun 5, 2024

@mojocakes Hi, can you provide an example imscc file somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants