mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
WIP
This commit is contained in:
parent
6c53ccf8fc
commit
43cd55c5aa
@ -37,5 +37,15 @@ pub fn run(allocator: std.mem.Allocator, cwd: std.fs.Dir, args: [][]const u8, he
|
||||
.command = command,
|
||||
},
|
||||
);
|
||||
try migration.save();
|
||||
const path = migration.save() catch |err| {
|
||||
switch (err) {
|
||||
error.InvalidMigrationCommand => {
|
||||
std.log.err("Invalid migration command: {?s}", .{command});
|
||||
return;
|
||||
},
|
||||
else => return err,
|
||||
}
|
||||
};
|
||||
|
||||
std.log.info("Saved migration: {s}", .{path});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user