Skip to content

print a better exception when script pack is not found - #1249

Merged
filipw merged 4 commits into
scriptcs:devfrom
filipw:bugfix/1170
Aug 1, 2017
Merged

filipw merged 4 commits into
scriptcs:devfrom
filipw:bugfix/1170

Conversation

@filipw

@filipw filipw commented Jul 31, 2017 •

Copy link
Copy Markdown
Member

Fixes #1170

Instead of:

ERROR: Script execution failed. [System.Collections.Generic.KeyNotFoundException] The given key was not present in the dictionary.

We now say:

ERROR: Script execution failed. [ScriptPackException] Tried to resolve a script pack 'Submission#0+Foo', 
but such script pack is not available in the current execution context.

@filipw

filipw commented Jul 31, 2017

Copy link
Copy Markdown
Member Author

The test failure here is a false positive.

@filipw
filipw merged commit fd3b8d8 into scriptcs:dev Aug 1, 2017
@filipw
filipw deleted the bugfix/1170 branch August 1, 2017 17:31
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.

KeyNotFoundException in ScriptPackManager

1 participant