source-code-error
Advanced tools
Comparing version 0.9.0 to 0.9.1
{ | ||
"name": "source-code-error", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Render Error of Source-Code", | ||
@@ -5,0 +5,0 @@ "keywords": [ "error", "code", "frame" ], |
@@ -79,5 +79,5 @@ /* | ||
if (options.filename !== "") { | ||
let dirname = path.dirname(options.filename) | ||
let dirname = path.dirname(options.filename) + path.sep | ||
let basename = path.basename(options.filename) | ||
header += `${chalk.red("file \"")} ${chalk.red(dirname)}${chalk.red.bold(basename)}${chalk.red("\", ")}` | ||
header += `${chalk.red("file \"")}${chalk.red(dirname)}${chalk.red.bold(basename)}${chalk.red("\", ")}` | ||
} | ||
@@ -84,0 +84,0 @@ header += `${chalk.red("line ")}${chalk.red.bold(options.line)}` + |
11483