Skip to content

Commit

Permalink
Proper error message if fat-db is not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly authored Apr 9, 2017
1 parent 2a2849a commit ed23054
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion routes/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ router.get('/:offset?', function(req, res, next) {

var data = {};

if (accounts === null) {
if (!accounts) {
return callback({name:"FatDBDisabled", message: "Parity FatDB system is not enabled. Please restart Parity with the --fat-db=on parameter."});
}

if (accounts.length === 0) {
return callback({name:"NoAccountsFound", message: "Chain contains no accounts."});
}

Expand Down

0 comments on commit ed23054

Please sign in to comment.