Skip to content

Instantly share code, notes, and snippets.

@thatkookooguy
Created May 18, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatkookooguy/e83fc7a3dbfedcc598e6a5b221d685ad to your computer and use it in GitHub Desktop.
Save thatkookooguy/e83fc7a3dbfedcc598e6a5b221d685ad to your computer and use it in GitHub Desktop.
if this doesn't work, tell me
angular.module('Kibibit', [])
.constant('TYPE_ERROR_MSGS', function(varName, typeExpected, typeRecieved) {
return [varName,
" should be a ",
typeExpected,
" but was given a ",
typeRecieved].join('');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment