1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Better errors

This commit is contained in:
Brian Fiete 2021-07-17 07:19:55 -07:00
parent 0ebe4ae929
commit 5929dbb6cb

View file

@ -311,7 +311,7 @@ namespace BeefPerf
{
var str = scope::String();
if (argView.UnQuoteString(str) case .Err)
Fail("Failed to unquote string");
Fail($"Failed to unquote string: {argView}\nCmd:{cmdLineView}");
args.Add(str);
isLiteralString = false;
}
@ -322,7 +322,7 @@ namespace BeefPerf
case .Ok(let val):
args.Add(scope:: box val);
case .Err:
Fail("Failed to parse float");
Fail($"Failed to parse float: {argView}\nCmd:{cmdLineView}");
return;
}
}
@ -333,7 +333,7 @@ namespace BeefPerf
case .Ok(let val):
args.Add(scope:: box val);
case .Err:
Fail("Failed to parse double");
Fail($"Failed to parse double: {argView}\nCmd:{cmdLineView}");
return;
}
}
@ -344,7 +344,7 @@ namespace BeefPerf
case .Ok(let val):
args.Add(scope:: box val);
case .Err:
Fail("Failed to parse int");
Fail($"Failed to parse int: {argView}\nCmd:{cmdLineView}");
return;
}
}