Skip to content

Commit

Permalink
[web] Capitalize error message
Browse files Browse the repository at this point in the history
  • Loading branch information
GochoMugo committed Nov 19, 2016
1 parent 0d56e32 commit 405ad91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/js/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ $(document).ready(function() {
cost = window.mmtcmath.calculate(window.network, parameters);
notify(cost);
} catch(ex) {
notify(ex.message, false);
var message = ex.message;
// capitalize the message
message = message.charAt(0).toUpperCase() + message.slice(1);
notify(message, false);
}
});
});
Expand Down

0 comments on commit 405ad91

Please sign in to comment.