WebHost: report back generation errors to user

This commit is contained in:
Fabian Dill
2020-11-12 19:50:13 +01:00
parent 38490813de
commit e005fb52f7
2 changed files with 5 additions and 3 deletions

View File

@@ -50,5 +50,5 @@ class Generation(db.Entity):
id = PrimaryKey(UUID, default=uuid4)
owner = Required(UUID)
options = Required(bytes, lazy=True) # these didn't work as JSON on mariaDB, so they're getting pickled now
meta = Required(bytes, lazy=True)
meta = Required(bytes, lazy=True) # if state is -1 (error) this will contain an utf-8 encoded error message
state = Required(int, default=0, index=True)