Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
fix exitting dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Sep 21, 2020
1 parent a8f9a98 commit dac4660
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## v0.3.0 (Latest)
## v0.3.1 (Latest)

- Fix exitting dev-server on module not found errors.

## v0.3.0

- Scoped CSS Support (Hugee shoutout to [@pantharshit00](https://github.com/pantharshit00/))
- Syntax warnings for multiple statements in a block.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abell-renderer",
"version": "0.3.0",
"version": "0.3.1",
"description": "JavaScript based Template Engine. Compiles .abell files to .html",
"main": "src/index.js",
"bin": {
Expand Down
5 changes: 4 additions & 1 deletion src/utils/general-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ function throwCustomError(err, code = '') {
.join('\n');
console.log(abellFileInStack);
console.log('\n');
process.exit(0);
const blankError = new Error('Abell Compiler Error. More logs above.');
blankError.stack =
blankError.stack.slice(0, blankError.stack.indexOf('\n')) + '\n\n';
throw blankError;
}

/**
Expand Down

0 comments on commit dac4660

Please sign in to comment.