mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
changed warning to error
This commit is contained in:
parent
26b0e2ae43
commit
b4297580a7
@ -54,7 +54,10 @@ pub fn init(
|
||||
let mut port_names = Vec::new();
|
||||
//TODO: Send these print messages to the UI logger instead of the rust console so the user can see them
|
||||
if out_ports.len() == 0 {
|
||||
logger.log(" No MIDI devices found. Connect a device or enable IAC Driver.".to_string(), "".to_string());
|
||||
logger.log(
|
||||
" No MIDI devices found. Connect a device or enable IAC Driver to enable midi.".to_string(),
|
||||
"".to_string()
|
||||
);
|
||||
// logger(window, " No MIDI devices found. Connect a device or enable IAC Driver.".to_string(), None);
|
||||
return;
|
||||
}
|
||||
@ -103,10 +106,10 @@ pub fn init(
|
||||
if out_con.is_some() {
|
||||
// process the message
|
||||
if let Err(err) = (&mut out_con.unwrap()).send(&message.message) {
|
||||
logger.log(format!("Midi message send error: {}", err), "warning".to_string());
|
||||
logger.log(format!("Midi message send error: {}", err), "error".to_string());
|
||||
}
|
||||
} else {
|
||||
logger.log(format!("failed to find midi device: {}", message.requestedport), "warning".to_string());
|
||||
logger.log(format!("failed to find midi device: {}", message.requestedport), "error".to_string());
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@ -70,7 +70,7 @@ pub fn init(
|
||||
if result.is_err() {
|
||||
logger.log(
|
||||
format!("OSC Message failed to send, the server might no longer be available"),
|
||||
"warning".to_string()
|
||||
"error".to_string()
|
||||
);
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user