diff --git a/vlib/net/websocket/websocket_client.v b/vlib/net/websocket/websocket_client.v index 05b98fdda8..c4e30055c3 100644 --- a/vlib/net/websocket/websocket_client.v +++ b/vlib/net/websocket/websocket_client.v @@ -16,7 +16,7 @@ const ( ) pub struct ClientState { -mut: +pub mut: state State = .closed // current state of connection } diff --git a/vlib/v/gen/c/orm.v b/vlib/v/gen/c/orm.v index ffba121244..da93458819 100644 --- a/vlib/v/gen/c/orm.v +++ b/vlib/v/gen/c/orm.v @@ -288,7 +288,7 @@ fn (mut g Gen) write_orm_insert_with_last_ids(node ast.SqlStmtLine, connection_v } } if f_key == '' { - verror('An field which holds an array, needs a fkey defined') + verror('a field which holds an array, needs a fkey defined ("${sym.name}")') } fkeys << f_key info := sym.array_info() @@ -911,7 +911,7 @@ fn (mut g Gen) write_orm_select(node ast.SqlExpr, connection_var_name string, le } // TODO: move to the ORM checker if fkey == '' { - verror('An field which holds an array, needs a `fkey` defined') + verror('fn field which holds an array, needs a `fkey` defined ("${sym.name}")') } info := sym.array_info() arr_typ := info.elem_type