Skip to content

Commit

Permalink
use string interpolation for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Barrett committed May 8, 2015
1 parent 68b7181 commit 100e16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Timestring.js
Expand Up @@ -50,7 +50,7 @@ export default class Timestring {
}

// throw error if invalid unit was passed
throw new Error( "The unit [" + unit + "] is not supported by timestring" );
throw new Error( `The unit ${unit} is not supported by timestring` );
};

// convert a value to a specific unit
Expand Down

0 comments on commit 100e16f

Please sign in to comment.