Skip to content

Commit

Permalink
Merge pull request #38 from k2tzumi/detail-error-messages
Browse files Browse the repository at this point in the history
Detail error messages
  • Loading branch information
k2tzumi authored Nov 8, 2024
2 parents c03164e + cd44256 commit d705c40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ dist/index.js:
node_modules:
npm install

.PHONY: install
install: ## Install packages
install: node_modules

.PHONY: upgrade
upgrade: ## Upgrades package.json
upgrade:
npx -p npm-check-updates -c "ncu -u"
npm update

.PHONY: login
login: ## Google login
login:
Expand Down
2 changes: 1 addition & 1 deletion src/JobBroker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class JobBroker<T extends Parameter> {

const result = handler(JSON.parse(parameter.parameter));
if (!result) {
throw new Error("Abnormal job return value.");
throw new Error(`Abnormal job return value. parameter: ${parameter.parameter}, result: (${typeof result}) "${result}"`);
}

parameter.state = "end";
Expand Down

0 comments on commit d705c40

Please # to comment.