shopping-checkout
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -82,3 +82,12 @@ #! /usr/bin/env node | ||
// 读取电子表格的第一张表 | ||
const wb = parseXLSX( pathResolve( templateName , xlsxFilename ) ); | ||
let wb; | ||
try { | ||
wb = parseXLSX( pathResolve( templateName , xlsxFilename ) ); | ||
} | ||
catch ( e ) { | ||
console.error( '解析 %s 文件时出错:' , pathResolve( templateName , xlsxFilename ) ); | ||
console.error( e ); | ||
console.error( '将不会在 %s 里生成文件。' , templateName ); | ||
return; | ||
} | ||
const firstSheet = wb.Sheets[ wb.SheetNames[ 0 ] ]; | ||
@@ -85,0 +94,0 @@ |
{ | ||
"name" : "shopping-checkout" , | ||
"version" : "0.1.3" , | ||
"version" : "0.1.4" , | ||
"description" : "根据数据生成购物网站的结算页面" , | ||
@@ -5,0 +5,0 @@ "preferGlobal" : true , |
233252
778