Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

Handle errors from incorrectly-structured JSON #44

Open
maxg opened this issue Oct 3, 2016 · 0 comments
Open

Handle errors from incorrectly-structured JSON #44

maxg opened this issue Oct 3, 2016 · 0 comments

Comments

@maxg
Copy link
Owner

maxg commented Oct 3, 2016

Especially since e.g. manual regrading requires humans to update files correctly.

For example, replacing a milestone JSON file with a grade JSON file results in:

use(null, (config.staff.users.indexOf(reporev.users[0]) < 0 ? '-' : '') + reporev.users.join('-'));
                                                   ^
TypeError: Cannot read property '0' of undefined
    at async.sortBy.callback.kind (/var/didit/src/grader.js:191:60)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant