Download pool/shard004/JavaScript/0025127_error.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025127_error.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard004/JavaScript/0025127_error.js
-
curl -L -o 0025127_error.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard004/JavaScript/0025127_error.js
607 Bytes
| import template from './error.html'; | |
| export const errorComponentName = 'appError'; | |
| export const errorComponent = { | |
| template, | |
| controller: ErrorController, | |
| controllerAs: 'vm', | |
| }; | |
| /* @ngInject */ | |
| function ErrorController($state, $stateParams, gettext, gettextCatalog) { | |
| /*jshint validthis: true */ | |
| var vm = this; | |
| var msg = gettext('An unknown error occured'); | |
| var translated = gettextCatalog.getString(msg); | |
| if ($state.get('error').message) { | |
| vm.message = translated + ': ' + $state.get('error').message; | |
| } else { | |
| vm.message = translated + '.'; | |
| } | |
| } | |