#
#asahi-dev · 2026-10-14 10:29
JamesCalligeros[m]imo /progress should return 204 if the installation id is not found
#asahi-dev · 2026-10-14 10:23
MichaelReeves[m]ack
#asahi-dev · 2026-10-14 10:22
JamesCalligeros[m]you should probably jsut wait until the core is refactored
#asahi-dev · 2026-10-14 10:22
MichaelReeves[m]thoughts / feedback ?
#asahi-dev · 2026-10-14 10:22
MichaelReeves[m]the web app currently follows that, but it can be easily changed
#asahi-dev · 2026-10-14 10:22
MichaelReeves[m]draft API spec: https://gist.github.com/IntegralPilot/47ca5f9ae4a877bfb2a36d530d4e90de
#asahi-dev · 2026-10-14 09:26
sven🎉
#asahi-dev · 2026-10-14 09:06
MichaelReeves[m]yay
#asahi-dev · 2026-10-14 09:05
chadmedlets go
#asahi-dev · 2026-10-14 09:00
jannaufinally, cubes spinning and gears rotating on 7.2
#asahi-dev · 2026-10-14 08:40
leiomy legacy stuff returns 200 for everything except 5xx's with actual 4xx code in json payload it's great :D
#asahi-dev · 2026-10-14 08:40
chadmedthat product also will return an empty 200 ok even if nothing happened. you then have to go to its own error logs in the product and see what you did wrong
#asahi-dev · 2026-10-14 08:39
chadmedyeah another product we deal with does something like that
#asahi-dev · 2026-10-14 08:39
MichaelReeves[m]Once I’ve seen the reverse, 500 ISE { “error_code”: null, “message”: “” } that means it works
#asahi-dev · 2026-10-14 08:38
chadmedreal nonsense i have to deal with daily
#asahi-dev · 2026-10-14 08:38
chadmeds/instance/reference but whatever you get the idea
#asahi-dev · 2026-10-14 08:38
chadmedif youre a backend dev and you do this fuck you
#asahi-dev · 2026-10-14 08:37
chadmed200 OK "{"error_code": "ISM_4000", "message": "Object instance not an instance of an object"}"
#asahi-dev · 2026-10-14 08:37
MichaelReeves[m]ack. I’ll write up the API I currently made it call so we can see if design is good or need improvement
#asahi-dev · 2026-10-14 08:36
chaos_princessheh, for me, $one_of_previous_dayjobs had a really good error library that allowed doing both semantic codes and auto-generated error messages with just like 1-3 lines of golang
#asahi-dev · 2026-10-14 08:34
chadmedwhy yes i would like my api to return 201 when nothing was created thank you $product
#asahi-dev · 2026-10-14 08:34
chadmednot the $dayjob way
#asahi-dev · 2026-10-14 08:34
chadmedwe do things properly
#asahi-dev · 2026-10-14 08:34
chadmedno
#asahi-dev · 2026-10-14 08:33
MichaelReeves[m]also I don’t think we need to worry abt semantic codes, just do 200 or 500 for everything
#asahi-dev · 2026-10-14 08:33
chadmedfor the web one it will yield some bytes that look like json or whatever needs to happen
#asahi-dev · 2026-10-14 08:33
chadmedfor the cli it will be the mess of p_error() calls
#asahi-dev · 2026-10-14 08:32
chadmedyeah the python side of the frontend will catch the core's exception and then turn that into whatever
#asahi-dev · 2026-10-14 08:29
chaos_princesswell, yes, the classic gettext approach
#asahi-dev · 2026-10-14 08:18
MichaelReeves[m]Like if the i18n string is “[volume] is not an APFS volume” and then volume is subst in as a var
#asahi-dev · 2026-10-14 08:17
MichaelReeves[m]And then front end substs the vars into the sentence for each localisation
#asahi-dev · 2026-10-14 08:16
MichaelReeves[m]Could be smth like { “msg”: “whatever”, “vars”: [“name”, 5, …] }
#asahi-dev · 2026-10-14 08:16
MichaelReeves[m]ah
#asahi-dev · 2026-10-14 08:16
chaos_princesswork
#asahi-dev · 2026-10-14 08:14
MichaelReeves[m]Will?
#asahi-dev · 2026-10-14 08:13
MichaelReeves[m]And then front end can look it up in its localisations
#asahi-dev · 2026-10-14 08:13
chaos_princessthat will
#asahi-dev · 2026-10-14 08:13
MichaelReeves[m]return string name then?
#asahi-dev · 2026-10-14 08:12
MichaelReeves[m]I think the idea is that the front end is served by the python process, so if the python throws an exception then the front end will die too
#asahi-dev · 2026-10-14 08:12
chaos_princesswon't work super well for localization
#asahi-dev · 2026-10-14 08:11
MichaelReeves[m]Return 500 with error in body on API and I’ll make it show in front end
#asahi-dev · 2026-10-14 08:01
JamesCalligeros[m]eg check_cur_os has multiple completely unrelated failure modes which just dump some garbage to stderr and bail out. these should be exceptions
#asahi-dev · 2026-10-14 08:00
JamesCalligeros[m]im thinking for the installer core where there are errors that need to be handled by the frontend, we just raise a custom exception type and let the frontend catch it and deal with it however it makes sense for that frontend to do so
#asahi-dev · 2026-10-14 07:30
JamesCalligeros[m]it is of course therefore very easy for all the wince factory equipment and associated software tooling to just "appropriate" it
#asahi-dev · 2026-10-14 07:29
JamesCalligeros[m]the most common one is mingliu, the reason being it was (is?) distributed with windows from back when windows was a dos application
#asahi-dev · 2026-10-14 07:29
JamesCalligeros[m]i went on a typeface deep dive a few years ago and figuring out what the heck that font was partially triggered it hehe
#asahi-dev · 2026-10-14 07:28
JamesCalligeros[m]yeah :P
#asahi-dev · 2026-10-14 07:28
chaos_princessJamesCalligeros[m]: oh, so _that_ is why they all use serif fonts. TIL
#asahi-dev · 2026-10-14 07:28
Faelar[m]OpenDyslexic Nerd Font exists 🤦‍♂️
#asahi-dev · 2026-10-14 07:27
MichaelReeves[m]uploaded an image: (307KiB) < https://matrix.org/oftc/media/v1/media/download/AT6E8whhJaJUeQv5eeBIa9KtGuKpDBwVBhmV-QNqzD9_JmvCfjseQywphH1JCeh7qEdTeZTMUzkPsmKFKiU6rnxCehgWhCiwAG1hdHJpeC5vcmcvR0pWeGt6TGxGVmN0THdibllqbVJRYWZw >

plus ›