www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit a668d45d1ebc87b4570796d186ebfc5669428b86
parent 79e769c8ab6e2861219907a5e432e0a992a5b8f1
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri, 11 Oct 2024 14:01:30 -0700

Fix handle_wrap function

It was returning the function it was suppost to be. Fixed that.

Diffstat:
Mfiles/lib/etc.js | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/files/lib/etc.js b/files/lib/etc.js @@ -129,13 +129,12 @@ export function error(message, on) { } export function handle_wrap(func, on) { - return function() { - try { - func() - } - catch(err) { - error("There was an issue with the page: " + err, on) - } + try { + func() + } + catch(err) { + console.error(err) + error("There was an issue with the page: " + err, on) } }