Skip to content

Commit

Permalink
Changing the not-yet documented Dexie.errnames to have the short name…
Browse files Browse the repository at this point in the history
…s of the errors (Dexie.errnames.Abort = "AbortError", Dexie.errnames.Syntax = "SyntaxError")
  • Loading branch information
dfahlander committed Mar 14, 2016
1 parent ea03e27 commit d24b098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.js
Expand Up @@ -75,8 +75,8 @@ derive(ModifyError).from(DexieError);
//
//

// Map of {ErrorName + "Error" -> ErrorName + "Error"}
export var errnames = errorList.reduce((obj,name)=>(obj[name+"Error"]=name+"Error",obj),{});
// Map of {ErrorName -> ErrorName + "Error"}
export var errnames = errorList.reduce((obj,name)=>(obj[name]=name+"Error",obj),{});

// Need an alias for DexieError because we're gonna create subclasses with the same name.
const BaseException = DexieError;
Expand Down

0 comments on commit d24b098

Please sign in to comment.