mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:45:10 +00:00
17 lines
303 B
C
17 lines
303 B
C
#include <Matrix.h>
|
|
|
|
HashMap *
|
|
MatrixCreateError(char *err, char *msg)
|
|
{
|
|
HashMap *map;
|
|
if (!err || !msg)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
map = HashMapCreate();
|
|
HashMapSet(map, "errcode", JsonValueString(err));
|
|
HashMapSet(map, "error", JsonValueString(msg));
|
|
|
|
return map;
|
|
}
|