Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Added ProjectFormatException and more detailed errors to DTH #1065

Merged
merged 1 commit into from
Jan 13, 2015

Conversation

davidfowl
Copy link
Member

/cc @BillHiebert

- ProjectFormatException has the project path, line and Column
(1 based), where the exception ocurred in the project.json file.
- Give more specific errors when they aren't just JsonReaderExceptions,
but semantic exceptions within the project format itself (beyond just JSON).
- Added Path, Line and Column to ErrorMessage in DTH

#1052
@davidfowl davidfowl merged commit 52f2bd6 into dev Jan 13, 2015
throw new InvalidDataException("Unable to resolve dependency ''.");

throw ProjectFormatException.Create(
"Unable to resolve dependency ''.",
Copy link
Member

Choose a reason for hiding this comment

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

Kind of a crappy error. Should it say like "empty dependency" or something?

Copy link
Member

Choose a reason for hiding this comment

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

Or say that the dependency isn't specified? Or that dependency names can't be empty?

@davidfowl davidfowl deleted the better-dth-errors branch January 19, 2015 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants