Skip to content

Commit

Permalink
Start using error (0) again
Browse files Browse the repository at this point in the history
  • Loading branch information
evancz committed Sep 20, 2017
1 parent 685a548 commit 54a8cce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions hints/0.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ If you let their support team know about this error, please give them a link to

## Info for Developers

When you initialize your Elm application, you are providing some flags like `Elm.App.fullscreen({ name: 'Tom' })` but the application is not expecting any flags.
Your application is triggering a bug in the `Dict` module of this library! The root cause may be in your code or in a dependency.

You can get more detailed information if you can reproduce the error in dev mode.
Try to reproduce the issue in dev mode. From there, create an [SSCCE](http://sscce.org/) that reproduces the issue and report it [here](https://github.com/elm-lang/core/issues) with a title like “Dict bug: ...” and a description that explains your understanding of the problem.

Hopefully that helps!
16 changes: 0 additions & 16 deletions hints/12.md

This file was deleted.

8 changes: 2 additions & 6 deletions src/Elm/Kernel/Error.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function _Error_throw__DEBUG(identifier, fact1, fact2, fact3, fact4)
switch(identifier)
{
case 0:
var moduleName = fact1;
throw new Error('The `' + moduleName + '` module does not need flags.\nInitialize it with no arguments and you should be all set!');
throw new Error('Internal red-black tree invariant violated');

case 1:
var url = fact1;
Expand Down Expand Up @@ -64,9 +63,6 @@ function _Error_throw__DEBUG(identifier, fact1, fact2, fact3, fact4)

case 11:
throw new Error('Cannot perform mod 0. Division by zero error.');

case 12:
throw new Error('Internal red-black tree invariant violated');
}
}

Expand All @@ -81,5 +77,5 @@ function _Error_regionToString(region)

function _Error_dictBug()
{
_Error_throw(12);
_Error_throw(0);
}

0 comments on commit 54a8cce

Please sign in to comment.