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

Commit dac4660

Browse files
committed
fix exitting dev server
1 parent a8f9a98 commit dac4660

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## v0.3.0 (Latest)
3+
## v0.3.1 (Latest)
4+
5+
- Fix exitting dev-server on module not found errors.
6+
7+
## v0.3.0
48

59
- Scoped CSS Support (Hugee shoutout to [@pantharshit00](https://github.com/pantharshit00/))
610
- Syntax warnings for multiple statements in a block.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "abell-renderer",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "JavaScript based Template Engine. Compiles .abell files to .html",
55
"main": "src/index.js",
66
"bin": {

src/utils/general-utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ function throwCustomError(err, code = '') {
116116
.join('\n');
117117
console.log(abellFileInStack);
118118
console.log('\n');
119-
process.exit(0);
119+
const blankError = new Error('Abell Compiler Error. More logs above.');
120+
blankError.stack =
121+
blankError.stack.slice(0, blankError.stack.indexOf('\n')) + '\n\n';
122+
throw blankError;
120123
}
121124

122125
/**

0 commit comments

Comments
 (0)