From 37ea6cf804be2b4078a84a128ea5acecb9fd0376 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Thu, 14 Jan 2016 11:49:27 -0500 Subject: [PATCH] Rename error-handler.js to error.js. --- src/cli/{error-handler.js => error.js} | 2 +- src/cli/main.js | 2 +- src/index.js | 2 +- test/test-stdout.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/cli/{error-handler.js => error.js} (99%) diff --git a/src/cli/error-handler.js b/src/cli/error.js similarity index 99% rename from src/cli/error-handler.js rename to src/cli/error.js index 5e564b3..34dd9c7 100644 --- a/src/cli/error-handler.js +++ b/src/cli/error.js @@ -1,6 +1,6 @@ /** Error-handling routines for HackMyResume. -@module error-handler.js +@module error.js @license MIT. See LICENSE.md for details. */ // TODO: Logging library diff --git a/src/cli/main.js b/src/cli/main.js index 16b3048..3c199cf 100644 --- a/src/cli/main.js +++ b/src/cli/main.js @@ -217,7 +217,7 @@ Definition of the `main` function. function execute( src, dst, opts, log ) { loadOptions.call( this, opts, this.parent.jsonArgs ); - var hand = require( './error-handler' ); + var hand = require( './error' ); hand.init( _opts.debug, _opts.assert ); var v = new HMR.verbs[ this.name() ](); _out.init( _opts ); diff --git a/src/index.js b/src/index.js index 0d6b72f..8b40823 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,6 @@ try { } catch( ex ) { - require('./cli/error-handler').err( ex, true ); + require('./cli/error').err( ex, true ); } diff --git a/test/test-stdout.js b/test/test-stdout.js index ff0a381..e383697 100644 --- a/test/test-stdout.js +++ b/test/test-stdout.js @@ -37,7 +37,7 @@ describe('Testing Ouput interface', function () { HMRMAIN( args ); } catch( ex ) { - require('../src/cli/error-handler').err( ex, false ); + require('../src/cli/error').err( ex, false ); } CHALK.enabled = true; process.exit = ProcessExitOrg;