Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Add print in case an upgrade failed #596

Merged
merged 4 commits into from
Mar 26, 2020

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Feb 16, 2020

Just one question: should we put it behind a feature instead?

cc @sdroege @EPashkin

@EPashkin
Copy link
Member

if cfg!(debug_assertions) ?

@EPashkin
Copy link
Member

@sdroege
Copy link
Member

sdroege commented Feb 16, 2020 via email

@GuillaumeGomez
Copy link
Member Author

No, it's definitely not. Take a look at gtk-rs/examples#294.

@GuillaumeGomez
Copy link
Member Author

I'm not too certain using cfg(debug_assertions) is a great idea though... Having a debug feature or something along the line might be better I think.

Also, I'll need to add documentation about this as well.

@sdroege
Copy link
Member

sdroege commented Feb 16, 2020 via email

@GuillaumeGomez
Copy link
Member Author

That's why I want to put it behind a macro. In case you didn't use it correctly and you need more information to debug.

@sdroege
Copy link
Member

sdroege commented Feb 17, 2020

As a separate debugging feature would be acceptable for me.

@GuillaumeGomez
Copy link
Member Author

Then I'll do that instead.

@EPashkin
Copy link
Member

@GuillaumeGomez note that current version don't build

error: variable 'variable' is still repeating at this depth
   --> src\clone.rs:136:65
    |
136 |                     println!("Failed to upgrade {}", stringify!($variable));
    |       

@GuillaumeGomez
Copy link
Member Author

Ah? Strange, it worked fine for me...

@GuillaumeGomez
Copy link
Member Author

Fixed the formatting...

src/lib.rs Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Member Author

Updated the domain as well.

src/clone.rs Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
@sdroege
Copy link
Member

sdroege commented Mar 25, 2020

Otherwise good to be merged for me.

src/lib.rs Outdated Show resolved Hide resolved
@sdroege
Copy link
Member

sdroege commented Mar 26, 2020

👍

@sdroege sdroege merged commit 4633ffd into gtk-rs:master Mar 26, 2020
@GuillaumeGomez GuillaumeGomez deleted the upgrade-failed branch March 26, 2020 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants